Skip to main content
Version: 3.5

TextBoxBase

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Implements the basic functionality required by text controls.

public class TextBoxBase : Control, IModified, ILabel, IReadOnly, IValidation

Constructors​

Instance memberTextBoxBase()​

Initializes an instance of a TextBoxBase derived control.

Properties​

Instance memberAcceptsTab​

Boolean: Returns or sets whether pressing the TAB key in a multiline text box control types a TAB character in the control instead of moving the focus to the next control in the tab order. (Default: False)

The Multiline property must be true to get a TAB character in the control.

Instance memberAutoComplete​

AutoComplete: Returns of sets whether the browser can auto complete the field with values previously entered by the user. (Default: Default)

Instance memberAutoCompleteList​

String[]: Identifies a list of pre-defined options to suggest to the user. (Default: null)

Instance memberAutoSize​

Boolean: Returns or sets whether the height of the control is set automatically. (Default: True)

Instance memberBorderStyle​

BorderStyle: Returns or sets the border type of the text box control. (Default: Solid)

Instance memberCanUndo​

Boolean: Returns a value indicating whether the user can undo the previous operation in a text box control.

Instance memberEnableNativeContextMenu​

Boolean: Enables or disables the browser's context menu. (Default: True)

Instance memberInvalid​

Boolean: Returns or sets a value that indicates that the control is invalid.

Instance memberInvalidMessage​

String: Returns or sets the invalid message that is shown in the invalid tooltip. (Default: "")

Instance memberLabel​

LabelWrapper: Provides a label related to the control.

Instance memberLabelText​

String: Returns or sets the localizable label associated with this control. (Default: "")

Instance memberLines​

String[]: Returns or sets the lines of text in a text box control.

Instance memberMaxLength​

Int32: Returns or sets the maximum number of characters the user can type or paste into the text box control. (Default: 0)

Throws:

Instance memberModified​

Boolean: Returns or sets a value that indicates that the text box control has been modified by the user since the control was created or its contents were last set.

Instance memberMultiline​

Boolean: Returns or sets whether this is a multiline text box control. (Default: False)

Throws:

  • ArgumentException The property cannot be modified after the component has been created.

Instance memberReadOnly​

Boolean: Returns or sets whether the text box control is read-only. (Default: False)

Instance memberSelectedText​

String: Returns or sets a value indicating the currently selected text in the control.

Instance memberSelectionLength​

Int32: Returns or sets the number of characters selected in the text box.

Throws:

Instance memberSelectionStart​

Int32: Returns or sets the starting point of text selected in the text box.

Throws:

Instance memberSelectOnEnter​

Boolean: Selects the text when gaining the focus. (Default: False)

Instance memberText​

String: Returns or sets the current text in the text box. (Default: "")

Instance memberTextLength​

Int32: Returns the length of text in the control.

Instance memberTools​

ComponentToolCollection: Returns the instance of ComponentToolCollection associated with this control.

Instance memberWatermark​

String: Returns or sets the text to show when the textbox is empty. (Default: null)

Instance memberWordWrap​

Boolean: Indicates whether a multiline text box control automatically wraps words to the beginning of the next line when necessary. (Default: True)

Methods​

Instance memberAppendText(text)​

Appends text to the current text of a text box.

ParameterTypeDescription
textStringThe text to append to the current contents of the text box.

Instance memberClear()​

Clears all text from the text box control.

Instance memberCopy()​

Copies the current selection in the text box to the Clipboard.

Instance memberCut()​

Moves the current selection in the text box to the Clipboard.

Instance memberDeselectAll()​

Specifies that the value of the SelectionLength property is zero so that no characters are selected in the control.

Instance memberPaste()​

Replaces the current selection in the text box with the contents of the Clipboard.

Instance memberScrollToX(x)​

Scrolls to the given left position.

ParameterTypeDescription
xInt32The horizontal scroll position.

Instance memberScrollToY(y)​

Scrolls to the given top position.

ParameterTypeDescription
yInt32The vertical scroll position.

Instance memberSelect(start, length)​

Selects a range of text in the text box.

ParameterTypeDescription
startInt32The position of the first character in the current text selection within the text box.
lengthInt32The number of characters to select.

Throws:

Instance memberSelectAll()​

Selects all text in the text box.

Events​

Instance memberAcceptsTabChanged​

EventHandler Fired when the value of the AcceptsTab property has changed.

Instance memberModifiedChanged​

EventHandler Fired when the value of the Modified property has changed.

Instance memberMultilineChanged​

EventHandler Fired when the value of the Multiline property has changed.

Instance memberReadOnlyChanged​

EventHandler Fired when the value of the ReadOnly property has changed.

Instance memberToolClick​

ToolClickEventHandler Fired when a ComponentTool is clicked.

Inherited By​

NameDescription
MaskedTextBoxUses a mask to distinguish between proper and improper user input.
TextBoxRepresents a text box control that allows the user to enter any value.
DataGridViewMaskedTextBoxEditingControlRepresents a MaskedTextBox control that can be hosted in a DataGridViewMaskedTextBoxCell cell.
DataGridViewTextBoxEditingControlRepresents a TextBox control that can be hosted in a DataGridViewTextBoxCell cell when the cell's WrapMode is set to False.
TagTextBoxRepresents a data field that displays a list of selectable and removable tags. The control recognizes tags as the user types and adds in front of the editable field.
TypedTextBoxRepresents a text box control that allows the user to enter a typed value.

Implements​

NameDescription
IBindableComponentBindable components implement this interface.
IDropTargetControls that support drag & drop operations implement this interface.
ILabelProvides access to the LabelWrapper associated with the controls that implement this interface.
IReadOnlyProvides access to the ReadOnly property for coontrols that support the read-only mode.
IModifiedProvides access to the Modified property and ModifiedChanged event for controls that implement this interface.
IValidationProvides access to the validation events and properties property for controls that support validation.
IWisejComponentAll wisej components implement this interface.
IWisejControlAll wisej controls derived from the Control class must implement this interface.
IWisejSerializableAllows an object to serialize itself.