ToggleButtonActiveXControl

ToggleButtonActiveXControl class

Represents a ToggleButton ActiveX control.

Properties

NameTypeDescription
TypeNumberGets 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.
PicturePositionNumberGets and set the location of the control’s picture relative to its caption. The value of the property is ControlPictureP
SpecialEffectNumberGets and sets the special effect of the control. The value of the property is ControlSpecialEffectType integer constant.
Picturebyte[]Gets and sets the data of the picture.
AcceleratorcharGets and sets the accelerator key for the control.
ValueNumberIndicates if the control is checked or not. The value of the property is CheckValueType integer constant.
IsTripleStatebooleanIndicates how the specified control will display Null values. Setting Description True The control will cycle through st
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.
IMEModeNumberGets 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.
TextAlignNumberRepresents 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.
WidthNumberGets and sets the width of the control in unit of points.
HeightNumberGets 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.
MousePointerNumberGets and sets the type of icon displayed as the mouse pointer for the control. The value of the property is ControlMouse
ForeOleColorNumberGets and sets the ole color of the foreground. Not applies to Image control.
BackOleColorNumberGets 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.

ToggleButtonActiveXControl.Type property

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

Type: Number

ToggleButtonActiveXControl.Caption property

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

Type: String

ToggleButtonActiveXControl.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: Number

ToggleButtonActiveXControl.SpecialEffect property

Gets and sets the special effect of the control. The value of the property is ControlSpecialEffectType integer constant.

Type: Number

ToggleButtonActiveXControl.Picture property

Gets and sets the data of the picture.

Type: byte[]

ToggleButtonActiveXControl.Accelerator property

Gets and sets the accelerator key for the control.

Type: char

ToggleButtonActiveXControl.Value property

Indicates if the control is checked or not. The value of the property is CheckValueType integer constant.

Type: Number

ToggleButtonActiveXControl.IsTripleState property

Indicates how the specified control will display Null values. Setting Description True The control will cycle through states for Yes, No, and Null values. The control appears dimmed (grayed) when its Value property is set to Null. False (Default) The control will cycle through states for Yes and No values. Null values display as if they were No values.

Type: boolean

ToggleButtonActiveXControl.IsEnabled property

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

Type: boolean

ToggleButtonActiveXControl.IsLocked property

Indicates whether data in the control is locked for editing.

Type: boolean

ToggleButtonActiveXControl.IsTransparent property

Indicates whether the control is transparent.

Type: boolean

ToggleButtonActiveXControl.IsAutoSize property

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

Type: boolean

ToggleButtonActiveXControl.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: Number

ToggleButtonActiveXControl.Font property

Represents the font of the control.

Type: Font

ToggleButtonActiveXControl.TextAlign property

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

Type: Number

ToggleButtonActiveXControl.Data property

Gets and sets the binary data of the control.

Type: byte[]

ToggleButtonActiveXControl.Workbook property

Gets the Workbook object.

Type: Workbook

ToggleButtonActiveXControl.Width property

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

Type: Number

ToggleButtonActiveXControl.Height property

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

Type: Number

ToggleButtonActiveXControl.MouseIcon property

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

Type: byte[]

ToggleButtonActiveXControl.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: Number

ToggleButtonActiveXControl.ForeOleColor property

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

Type: Number

ToggleButtonActiveXControl.BackOleColor property

Gets and sets the ole color of the background.

Type: Number

ToggleButtonActiveXControl.IsVisible property

Indicates whether this control is visible.

Type: boolean

ToggleButtonActiveXControl.Shadow property

Indicates whether to show a shadow.

Type: boolean

ToggleButtonActiveXControl.LinkedCell property

Gets and sets the linked cell.

Type: String

ToggleButtonActiveXControl.ListFillRange property

Gets and sets the list fill range.

Type: String