Class ActiveXTextBox
Inherited Members
Namespace: DRIT.Spreadsheet.Forms
Assembly: DRIT.Spreadsheet.dll
Syntax
public class ActiveXTextBox : ActiveXControl, IWorksheetDrawingObject, ISheetDrawingObject, IDrawingObject
Fields
TextBoxClassId
Declaration
public const string TextBoxClassId = null
Field Value
Type | Description |
---|---|
System.String |
Properties
AutoLoad
Declaration
public bool AutoLoad { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
AutoSize
Declaration
public bool AutoSize { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
AutoTab
Declaration
public bool AutoTab { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
AutoWordSelect
Specifies whether a word or a character is the basic unit used to extend a selection.
Declaration
public bool AutoWordSelect { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | True - Uses a word as the basic unit (default). False - Uses a character as the basic unit. |
BorderColor
Specifies the color of the border of the control.
Declaration
public long BorderColor { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
Remarks
2.5.7 BorderColor
BorderStyle
Specifies the type of border used by the control.
Declaration
public BorderStyle BorderStyle { get; set; }
Property Value
Type | Description |
---|---|
BorderStyle |
Remarks
2.5.8 BorderStyle
DragBehavior
Specifies whether the system enables the drag-and-drop feature
Declaration
public DragBehavior DragBehavior { get; set; }
Property Value
Type | Description |
---|---|
DragBehavior |
EnterFieldBehavior
Specifies the selection behavior when entering a TextBox.
Declaration
public EnterFieldBehavior EnterFieldBehavior { get; set; }
Property Value
Type | Description |
---|---|
EnterFieldBehavior |
EnterKeyBehavior
Defines the effect of pressing ENTER in a TextBox.
Declaration
public bool EnterKeyBehavior { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | True - Pressing ENTER creates a new line. False - Pressing ENTER moves the focus to the next object in the tab order. |
IntegralHeight
Indicates whether a TextBox displays full lines of text in a list or partial lines.
Declaration
public bool IntegralHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LinkedCell
Gets or sets the cell to which the control's text is linked to.
Declaration
public Cell LinkedCell { get; set; }
Property Value
Type | Description |
---|---|
Cell |
LinkedCellLabel
Gets or sets the cell label to which the control's text is linked to.
Declaration
public string LinkedCellLabel { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MaxLength
Specifies the maximum number of characters a user can enter in a TextBox.
Declaration
public int MaxLength { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MultiLine
Specifies whether a control can accept and display multiple lines of text.
Declaration
public bool MultiLine { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | True - The text is displayed across multiple lines (default). False - The text is not displayed across multiple lines. |
PasswordChar
Specifies whether placeholder characters are displayed instead of the characters actually entered in a TextBox.
Declaration
public string PasswordChar { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ScrollBars
Specifies whether a control, form, or page has vertical scroll bars, horizontal scroll bars, or both.
Declaration
public ScrollBars ScrollBars { get; set; }
Property Value
Type | Description |
---|---|
ScrollBars |
SelectionMargin
Specifies whether the user can select a line of text by clicking in the region to the left of the text.
Declaration
public bool SelectionMargin { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
True - Clicking in margin causes selection of text (default). False - Clicking in margin does not cause selection of text.
TabKeyBehavior
Determines whether tabs are allowed in the edit region.
Declaration
public bool TabKeyBehavior { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
True - Pressing TAB inserts a tab character in the edit region. False - Pressing TAB moves the focus to the next object in the tab order (default).
Text
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TextAlign
Declaration
public TextAlign TextAlign { get; set; }
Property Value
Type | Description |
---|---|
TextAlign |