Skip to main content
Version: 4.1

TypedTextBox

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents a text box control that allows the user to enter a typed value.

public class TypedTextBox : TextBox

Constructors

Instance member TypedTextBox()

Initializes a new instance of TypedTextBox.

Instance member TypedTextBox(onTextChanged)

Initializes a new instance of the TypedTextBox class with specific initial settings.

NameTypeDescription
onTextChangedAction<Object, EventArgs>Handler for the TextChanged event.

Instance member TypedTextBox(label, onTextChanged)

Initializes a new instance of the TypedTextBox class with specific initial settings.

NameTypeDescription
labelStringThe initial text to display in the TypedTextBox label.
onTextChangedAction<Object, EventArgs>Handler for the TextChanged event.

Instance member TypedTextBox(location, size, onTextChanged)

Initializes a new instance of the TypedTextBox class with specific initial settings.

NameTypeDescription
locationPointThe location of the TypedTextBox on its parent control.
sizeSizeThe size of the TypedTextBox.
onTextChangedAction<Object, EventArgs>Handler for the TextChanged event.

Instance member TypedTextBox(label, location, size, onTextChanged)

Initializes a new instance of the TypedTextBox class with specific initial settings.

NameTypeDescription
labelStringThe initial text to display in the TypedTextBox label.
locationPointThe location of the TypedTextBox on its parent control.
sizeSizeThe size of the TypedTextBox.
onTextChangedAction<Object, EventArgs>Handler for the TextChanged event.

Properties

Instance member Culture

CultureInfo: Returns or sets the culture used to parse and format the typed value.

Instance member CustomFormat

String: Returns or sets the format string to use when formatting the value to display in the editor control. Supports all .NET format types, see formatting-types. (Default: null)

Instance member KeepFormatOnEnter

Boolean: Returns or sets whether the formatted text should be preserved when the editor gains the focus. (Default: True)

Instance member Text

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

Instance member Value

Object: Returns or sets the value parsed to a ValueType object. (Default: null)

Instance member ValueType

Type: Returns or sets the Type of the value of the TypedTextBox. (Default: System.String)

Methods

Protected member OnCultureChanged(e)

Fires the CultureChanged event.

ParameterTypeDescription
eEventArgsEvent data.

Protected member OnCustomFormatChanged(e)

Fires the CustomFormatChanged event.

ParameterTypeDescription
eEventArgsEvent data.

Protected member OnFormat(e)

Fires the Format event.

ParameterTypeDescription
eConvertEventArgsEvent data.

Protected member OnGotFocus(e)

ParameterTypeDescription
eEventArgs

Protected member OnParse(e)

Fires the Parse event.

ParameterTypeDescription
eConvertEventArgsEvent data.

Protected member OnTextChanged(e)

Fires the TextChanged event.

ParameterTypeDescription
eEventArgsAn EventArgs that contains the event data.

Protected member OnValidating(e)

ParameterTypeDescription
eCancelEventArgs

Protected member OnValueChanged(e)

Fires the ValueChanged event.

ParameterTypeDescription
eEventArgsEvent data.

Protected member OnValueTypeChanged(e)

Fires the ValueTypeChanged event.

ParameterTypeDescription
eEventArgsEvent data.

Events

Instance member CultureChanged

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

Instance member CustomFormatChanged

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

Instance member Format

ConvertEventHandler Fired when the value control formats the typed Value to display it to the user.

Instance member Parse

ConvertEventHandler Fired when the control parses the text into the typed Value.

Instance member ValueChanged

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

Instance member ValueTypeChanged

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

Implements

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
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.