TextBoxBase

Wisej.Web.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

Initializes an instance of a TextBoxBase derived control.

Properties

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.

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

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

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

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

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

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

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

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

LabelWrapper: Provides a label related to the control.

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

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

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

Throws:

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.

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.

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

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

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

Throws:

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

Throws:

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

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

Int32: Returns the length of text in the control.

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

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

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

Methods

Appends text to the current text of a text box.

Clears all text from the text box control.

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

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

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

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

Scrolls to the given left position.

Scrolls to the given top position.

Selects a range of text in the text box.

Throws:

Selects all text in the text box.

Events

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

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

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

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

ToolClickEventHandler Fired when a ComponentTool is clicked.

Inherited By

Implements

Last updated