Show / Hide Table of Contents

Class ExcelControlAsType

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

Inheritance
System.Object
ExcelControlAsType
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml.Drawing
Assembly: EPPlus.dll
Syntax
public class ExcelControlAsType

Properties

Button

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

Declaration
public ExcelControlButton Button { get; }
Property Value
Type Description
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

Declaration
public ExcelControlCheckBox CheckBox { get; }
Property Value
Type Description
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

Declaration
public ExcelControlDropDown DropDown { get; }
Property Value
Type Description
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

Declaration
public ExcelControlGroupBox GroupBox { get; }
Property Value
Type Description
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

Declaration
public ExcelControlLabel Label { get; }
Property Value
Type Description
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

Declaration
public ExcelControlListBox ListBox { get; }
Property Value
Type Description
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

Declaration
public ExcelControlRadioButton RadioButton { get; }
Property Value
Type Description
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

Declaration
public ExcelControlScrollBar ScrollBar { get; }
Property Value
Type Description
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

Declaration
public ExcelControlSpinButton SpinButton { get; }
Property Value
Type Description
ExcelControlSpinButton

The drawing as a spin button

Methods

Type<T>()

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

Declaration
public T Type<T>()
    where T : ExcelControl
Returns
Type Description
T

The drawing as type T

Type Parameters
Name Description
T

The type of drawing. T must be inherited from ExcelDrawing

Back to top Generated by DocFX