CommandButtonActiveXControl

CommandButtonActiveXControl class

Represents a command button.

Properties

NameTypeDescription
TypeintGets the type of the ActiveX control. The value of the property is ControlType integer constant.
CaptionStringGets and set the descriptive text that appears on a control.
PicturePositionintGets and set the location of the control’s picture relative to its caption. The value of the property is ControlPictureP
Picturebyte[]Gets and sets the data of the picture.
AcceleratorcharGets and sets the accelerator key for the control.
TakeFocusOnClickbooleanIndicates whether the control takes the focus when clicked.
IsWordWrappedbooleanIndicates whether the contents of the control automatically wrap at the end of a line.
IsEnabledbooleanIndicates whether the control can receive the focus and respond to user-generated events.
IsLockedbooleanIndicates whether data in the control is locked for editing.
IsTransparentbooleanIndicates whether the control is transparent.
IsAutoSizebooleanIndicates whether the control will automatically resize to display its entire contents.
IMEModeintGets and sets the default run-time mode of the Input Method Editor for the control as it receives focus. The value of th
FontFontRepresents the font of the control.
TextAlignintRepresents how to align the text used by the control. The value of the property is TextAlignmentType integer constant.
Databyte[]Gets and sets the binary data of the control.
WorkbookWorkbookGets the Workbook object.
WidthfloatGets and sets the width of the control in unit of points.
HeightfloatGets and sets the height of the control in unit of points.
MouseIconbyte[]Gets and sets a custom icon to display as the mouse pointer for the control.
MousePointerintGets and sets the type of icon displayed as the mouse pointer for the control. The value of the property is ControlMouse
ForeOleColorintGets and sets the ole color of the foreground. Not applies to Image control.
BackOleColorintGets and sets the ole color of the background.
IsVisiblebooleanIndicates whether this control is visible.
ShadowbooleanIndicates whether to show a shadow.
LinkedCellStringGets and sets the linked cell.
ListFillRangeStringGets and sets the list fill range.

CommandButtonActiveXControl.Type property

Gets the type of the ActiveX control. The value of the property is ControlType integer constant.

Type: int

CommandButtonActiveXControl.Caption property

Gets and set the descriptive text that appears on a control.

Type: String

CommandButtonActiveXControl.PicturePosition property

Gets and set the location of the control’s picture relative to its caption. The value of the property is ControlPicturePositionType integer constant.

Type: int

CommandButtonActiveXControl.Picture property

Gets and sets the data of the picture.

Type: byte[]

CommandButtonActiveXControl.Accelerator property

Gets and sets the accelerator key for the control.

Type: char

CommandButtonActiveXControl.TakeFocusOnClick property

Indicates whether the control takes the focus when clicked.

Type: boolean

CommandButtonActiveXControl.IsWordWrapped property

Indicates whether the contents of the control automatically wrap at the end of a line.

Type: boolean

CommandButtonActiveXControl.IsEnabled property

Indicates whether the control can receive the focus and respond to user-generated events.

Type: boolean

CommandButtonActiveXControl.IsLocked property

Indicates whether data in the control is locked for editing.

Type: boolean

CommandButtonActiveXControl.IsTransparent property

Indicates whether the control is transparent.

Type: boolean

CommandButtonActiveXControl.IsAutoSize property

Indicates whether the control will automatically resize to display its entire contents.

Type: boolean

CommandButtonActiveXControl.IMEMode property

Gets and sets the default run-time mode of the Input Method Editor for the control as it receives focus. The value of the property is InputMethodEditorMode integer constant.

Type: int

CommandButtonActiveXControl.Font property

Represents the font of the control.

Type: Font

CommandButtonActiveXControl.TextAlign property

Represents how to align the text used by the control. The value of the property is TextAlignmentType integer constant.

Type: int

CommandButtonActiveXControl.Data property

Gets and sets the binary data of the control.

Type: byte[]

CommandButtonActiveXControl.Workbook property

Gets the Workbook object.

Type: Workbook

CommandButtonActiveXControl.Width property

Gets and sets the width of the control in unit of points.

Type: float

CommandButtonActiveXControl.Height property

Gets and sets the height of the control in unit of points.

Type: float

CommandButtonActiveXControl.MouseIcon property

Gets and sets a custom icon to display as the mouse pointer for the control.

Type: byte[]

CommandButtonActiveXControl.MousePointer property

Gets and sets the type of icon displayed as the mouse pointer for the control. The value of the property is ControlMousePointerType integer constant.

Type: int

CommandButtonActiveXControl.ForeOleColor property

Gets and sets the ole color of the foreground. Not applies to Image control.

Type: int

CommandButtonActiveXControl.BackOleColor property

Gets and sets the ole color of the background.

Type: int

CommandButtonActiveXControl.IsVisible property

Indicates whether this control is visible.

Type: boolean

CommandButtonActiveXControl.Shadow property

Indicates whether to show a shadow.

Type: boolean

CommandButtonActiveXControl.LinkedCell property

Gets and sets the linked cell.

Type: String

CommandButtonActiveXControl.ListFillRange property

Gets and sets the list fill range.

Type: String