ListBoxActiveXControl

ListBoxActiveXControl class

Represents a ListBox ActiveX control.

Properties

NameTypeDescription
TypeintGets the type of the ActiveX control. The value of the property is ControlType integer constant.
ScrollBarsintIndicates specifies whether the control has vertical scroll bars, horizontal scroll bars, both, or neither. The value of
ListWidthfloatGets and set the width in unit of points.
BoundColumnintRepresents how the Value property is determined for a ComboBox or ListBox when the MultiSelect properties value (fmMulti
TextColumnintRepresents the column in a ComboBox or ListBox to display to the user.
ColumnCountintRepresents the number of columns to display in a ComboBox or ListBox.
MatchEntryintIndicates how a ListBox or ComboBox searches its list as the user types. The value of the property is ControlMatchEntryT
ListStyleintGets and sets the visual appearance. The value of the property is ControlListStyle integer constant.
SelectionTypeintIndicates whether the control permits multiple selections. The value of the property is SelectionType integer constant.
ValueStringGets and sets the value of the control. Only effects when SelectionType is SelectionType.Single;
BorderStyleintGets and set the type of border used by the control. The value of the property is ControlBorderType integer constant.
BorderOleColorintGets and sets the ole color of the background.
SpecialEffectintGets and sets the special effect of the control. The value of the property is ControlSpecialEffectType integer constant.
ShowColumnHeadsbooleanIndicates whether column headings are displayed.
IntegralHeightbooleanIndicates whether the control will only show complete lines of text without showing any partial lines.
ColumnWidthsfloatGets and sets the width of the column.
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.

ListBoxActiveXControl.Type property

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

Type: int

ListBoxActiveXControl.ScrollBars property

Indicates specifies whether the control has vertical scroll bars, horizontal scroll bars, both, or neither. The value of the property is ControlScrollBarType integer constant.

Type: int

ListBoxActiveXControl.ListWidth property

Gets and set the width in unit of points.

Type: float

ListBoxActiveXControl.BoundColumn property

Represents how the Value property is determined for a ComboBox or ListBox when the MultiSelect properties value (fmMultiSelectSingle).

Type: int

ListBoxActiveXControl.TextColumn property

Represents the column in a ComboBox or ListBox to display to the user.

Type: int

ListBoxActiveXControl.ColumnCount property

Represents the number of columns to display in a ComboBox or ListBox.

Type: int

ListBoxActiveXControl.MatchEntry property

Indicates how a ListBox or ComboBox searches its list as the user types. The value of the property is ControlMatchEntryType integer constant.

Type: int

ListBoxActiveXControl.ListStyle property

Gets and sets the visual appearance. The value of the property is ControlListStyle integer constant.

Type: int

ListBoxActiveXControl.SelectionType property

Indicates whether the control permits multiple selections. The value of the property is SelectionType integer constant.

Type: int

ListBoxActiveXControl.Value property

Gets and sets the value of the control. Only effects when SelectionType is SelectionType.Single;

Type: String

ListBoxActiveXControl.BorderStyle property

Gets and set the type of border used by the control. The value of the property is ControlBorderType integer constant.

Type: int

ListBoxActiveXControl.BorderOleColor property

Gets and sets the ole color of the background.

Type: int

ListBoxActiveXControl.SpecialEffect property

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

Type: int

ListBoxActiveXControl.ShowColumnHeads property

Indicates whether column headings are displayed.

Type: boolean

ListBoxActiveXControl.IntegralHeight property

Indicates whether the control will only show complete lines of text without showing any partial lines.

Type: boolean

ListBoxActiveXControl.ColumnWidths property

Gets and sets the width of the column.

Type: float

ListBoxActiveXControl.IsEnabled property

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

Type: boolean

ListBoxActiveXControl.IsLocked property

Indicates whether data in the control is locked for editing.

Type: boolean

ListBoxActiveXControl.IsTransparent property

Indicates whether the control is transparent.

Type: boolean

ListBoxActiveXControl.IsAutoSize property

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

Type: boolean

ListBoxActiveXControl.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

ListBoxActiveXControl.Font property

Represents the font of the control.

Type: Font

ListBoxActiveXControl.TextAlign property

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

Type: int

ListBoxActiveXControl.Data property

Gets and sets the binary data of the control.

Type: byte[]

ListBoxActiveXControl.Workbook property

Gets the Workbook object.

Type: Workbook

ListBoxActiveXControl.Width property

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

Type: float

ListBoxActiveXControl.Height property

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

Type: float

ListBoxActiveXControl.MouseIcon property

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

Type: byte[]

ListBoxActiveXControl.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

ListBoxActiveXControl.ForeOleColor property

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

Type: int

ListBoxActiveXControl.BackOleColor property

Gets and sets the ole color of the background.

Type: int

ListBoxActiveXControl.IsVisible property

Indicates whether this control is visible.

Type: boolean

ListBoxActiveXControl.Shadow property

Indicates whether to show a shadow.

Type: boolean

ListBoxActiveXControl.LinkedCell property

Gets and sets the linked cell.

Type: String

ListBoxActiveXControl.ListFillRange property

Gets and sets the list fill range.

Type: String