Table of Contents

Class ExcelControlAsType

Namespace
OfficeOpenXml.Drawing
Assembly
EPPlus.dll

Provides a simple way to type cast control drawing object top its top level class.

public class ExcelControlAsType
Inheritance
ExcelControlAsType
Inherited Members

Properties

Button

Returns the drawing as a button. If this drawing is not a button, null will be returned

public ExcelControlButton Button { get; }

Property Value

ExcelControlButton

The drawing as a button

CheckBox

Returns the drawing as a check box. If this drawing is not a check box, null will be returned

public ExcelControlCheckBox CheckBox { get; }

Property Value

ExcelControlCheckBox

The drawing as a check box

DropDown

Returns the drawing as a drop-down. If this drawing is not a drop-down, null will be returned

public ExcelControlDropDown DropDown { get; }

Property Value

ExcelControlDropDown

The drawing as a drop-down

GroupBox

Returns the drawing as a group box. If this drawing is not a group box, null will be returned

public ExcelControlGroupBox GroupBox { get; }

Property Value

ExcelControlGroupBox

The drawing as a group box

Label

Returns the drawing as a label. If this drawing is not a label, null will be returned

public ExcelControlLabel Label { get; }

Property Value

ExcelControlLabel

The drawing as a label

ListBox

Returns the drawing as a list box. If this drawing is not a list box, null will be returned

public ExcelControlListBox ListBox { get; }

Property Value

ExcelControlListBox

The drawing as a list box

RadioButton

Returns the drawing as a radio button. If this drawing is not a radio button, null will be returned

public ExcelControlRadioButton RadioButton { get; }

Property Value

ExcelControlRadioButton

The drawing as a radio button

ScrollBar

Returns the drawing as a scroll bar. If this drawing is not a scroll bar, null will be returned

public ExcelControlScrollBar ScrollBar { get; }

Property Value

ExcelControlScrollBar

The drawing as a scroll bar

SpinButton

Returns the drawing as a spin button. If this drawing is not a spin button, null will be returned

public ExcelControlSpinButton SpinButton { get; }

Property Value

ExcelControlSpinButton

The drawing as a spin button

Methods

Type<T>()

Converts the drawing to it's top level or other nested drawing class.

public T Type<T>() where T : ExcelControl

Returns

T

The drawing as type T

Type Parameters

T

The type of drawing. T must be inherited from ExcelDrawing