TextBoxActiveXControl

TextBoxActiveXControl class

Represents a text box ActiveX control.

Properties

NameTypeDescription
TypeintGets the type of the ActiveX control. The value of the property is ControlType integer constant.
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.
MaxLengthintGets and sets the maximum number of characters
ScrollBarsintIndicates specifies whether the control has vertical scroll bars, horizontal scroll bars, both, or neither. The value of
PasswordCharcharGets and sets a character to be displayed in place of the characters entered.
IsEditablebooleanIndicates whether the user can type into the control.
IntegralHeightbooleanIndicates whether the control will only show complete lines of text without showing any partial lines.
IsDragBehaviorEnabledbooleanIndicates whether dragging and dropping is enabled for the control.
EnterKeyBehaviorbooleanSpecifies the behavior of the ENTER key. True specifies that pressing ENTER will create a new line. False specifies that
EnterFieldBehaviorbooleanSpecifies selection behavior when entering the control. True specifies that the selection remains unchanged from last ti
TabKeyBehaviorbooleanIndicates whether tab characters are allowed in the text of the control.
HideSelectionbooleanIndicates whether selected text in the control appears highlighted when the control does not have focus.
IsAutoTabbooleanIndicates whether the focus will automatically move to the next control when the user enters the maximum number of chara
IsMultiLinebooleanIndicates whether the control can display more than one line of text.
IsAutoWordSelectedbooleanSpecifies the basic unit used to extend a selection. True specifies that the basic unit is a single character. false spe
IsWordWrappedbooleanIndicates whether the contents of the control automatically wrap at the end of a line.
TextStringGets and set text of the control.
DropButtonStyleintSpecifies the symbol displayed on the drop button The value of the property is DropButtonStyle integer constant.
ShowDropButtonTypeWhenintSpecifies the symbol displayed on the drop button The value of the property is ShowDropButtonType integer constant.
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.

TextBoxActiveXControl.Type property

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

Type: int

TextBoxActiveXControl.BorderStyle property

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

Type: int

TextBoxActiveXControl.BorderOleColor property

Gets and sets the ole color of the background.

Type: int

TextBoxActiveXControl.SpecialEffect property

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

Type: int

TextBoxActiveXControl.MaxLength property

Gets and sets the maximum number of characters

Type: int

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

TextBoxActiveXControl.PasswordChar property

Gets and sets a character to be displayed in place of the characters entered.

Type: char

TextBoxActiveXControl.IsEditable property

Indicates whether the user can type into the control.

Type: boolean

TextBoxActiveXControl.IntegralHeight property

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

Type: boolean

TextBoxActiveXControl.IsDragBehaviorEnabled property

Indicates whether dragging and dropping is enabled for the control.

Type: boolean

TextBoxActiveXControl.EnterKeyBehavior property

Specifies the behavior of the ENTER key. True specifies that pressing ENTER will create a new line. False specifies that pressing ENTER will move the focus to the next object in the tab order.

Type: boolean

TextBoxActiveXControl.EnterFieldBehavior property

Specifies selection behavior when entering the control. True specifies that the selection remains unchanged from last time the control was active. False specifies that all the text in the control will be selected when entering the control.

Type: boolean

TextBoxActiveXControl.TabKeyBehavior property

Indicates whether tab characters are allowed in the text of the control.

Type: boolean

TextBoxActiveXControl.HideSelection property

Indicates whether selected text in the control appears highlighted when the control does not have focus.

Type: boolean

TextBoxActiveXControl.IsAutoTab property

Indicates whether the focus will automatically move to the next control when the user enters the maximum number of characters.

Type: boolean

TextBoxActiveXControl.IsMultiLine property

Indicates whether the control can display more than one line of text.

Type: boolean

TextBoxActiveXControl.IsAutoWordSelected property

Specifies the basic unit used to extend a selection. True specifies that the basic unit is a single character. false specifies that the basic unit is a whole word.

Type: boolean

TextBoxActiveXControl.IsWordWrapped property

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

Type: boolean

TextBoxActiveXControl.Text property

Gets and set text of the control.

Type: String

TextBoxActiveXControl.DropButtonStyle property

Specifies the symbol displayed on the drop button The value of the property is DropButtonStyle integer constant.

Type: int

TextBoxActiveXControl.ShowDropButtonTypeWhen property

Specifies the symbol displayed on the drop button The value of the property is ShowDropButtonType integer constant.

Type: int

TextBoxActiveXControl.IsEnabled property

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

Type: boolean

TextBoxActiveXControl.IsLocked property

Indicates whether data in the control is locked for editing.

Type: boolean

TextBoxActiveXControl.IsTransparent property

Indicates whether the control is transparent.

Type: boolean

TextBoxActiveXControl.IsAutoSize property

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

Type: boolean

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

TextBoxActiveXControl.Font property

Represents the font of the control.

Type: Font

TextBoxActiveXControl.TextAlign property

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

Type: int

TextBoxActiveXControl.Data property

Gets and sets the binary data of the control.

Type: byte[]

TextBoxActiveXControl.Workbook property

Gets the Workbook object.

Type: Workbook

TextBoxActiveXControl.Width property

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

Type: float

TextBoxActiveXControl.Height property

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

Type: float

TextBoxActiveXControl.MouseIcon property

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

Type: byte[]

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

TextBoxActiveXControl.ForeOleColor property

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

Type: int

TextBoxActiveXControl.BackOleColor property

Gets and sets the ole color of the background.

Type: int

TextBoxActiveXControl.IsVisible property

Indicates whether this control is visible.

Type: boolean

TextBoxActiveXControl.Shadow property

Indicates whether to show a shadow.

Type: boolean

TextBoxActiveXControl.LinkedCell property

Gets and sets the linked cell.

Type: String

TextBoxActiveXControl.ListFillRange property

Gets and sets the list fill range.

Type: String