TypedTextBox

Wisej.Web.TypedTextBox

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

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

public class TypedTextBox : TextBox

Constructors

TypedTextBox()

Initializes a new instance of TypedTextBox.

TypedTextBox(onTextChanged)

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

Name
Type
Description

onTextChanged

Handler for the TextChanged event.

TypedTextBox(label, onTextChanged)

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

Name
Type
Description

label

The initial text to display in the TypedTextBox label.

onTextChanged

Handler for the TextChanged event.

TypedTextBox(location, size, onTextChanged)

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

Name
Type
Description

location

The location of the TypedTextBox on its parent control.

size

The size of the TypedTextBox.

onTextChanged

Handler for the TextChanged event.

TypedTextBox(label, location, size, onTextChanged)

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

Name
Type
Description

label

The initial text to display in the TypedTextBox label.

location

The location of the TypedTextBox on its parent control.

size

The size of the TypedTextBox.

onTextChanged

Handler for the TextChanged event.

Properties

Culture

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

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)

KeepFormatOnEnter

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

Text

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

Value

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

ValueType

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

Methods

OnCultureChanged(e)

Fires the CultureChanged event.

Parameter
Type
Description

e

Event data.

OnCustomFormatChanged(e)

Fires the CustomFormatChanged event.

Parameter
Type
Description

e

Event data.

OnEnter(e)

Parameter
Type
Description

OnFormat(e)

Fires the Format event.

Parameter
Type
Description

e

Event data.

OnParse(e)

Fires the Parse event.

Parameter
Type
Description

e

Event data.

OnTextChanged(e)

Fires the TextChanged event.

Parameter
Type
Description

e

An EventArgs that contains the event data.

OnValidating(e)

Parameter
Type
Description

OnValueChanged(e)

Fires the ValueChanged event.

Parameter
Type
Description

e

Event data.

OnValueTypeChanged(e)

Fires the ValueTypeChanged event.

Parameter
Type
Description

e

Event data.

Events

CultureChanged

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

CustomFormatChanged

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

Format

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

Parse

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

ValueChanged

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

ValueTypeChanged

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

Implements

Name
Description

Provides access to the UserData and Tag properties associated to the component implementing this interface.

Bindable components implement this interface.

Controls that support drag & drop operations implement this interface.

Provides access to the LabelWrapper associated with the controls that implement this interface.

Provides access to the ReadOnly property for coontrols that support the read-only mode.

Provides access to the Modified property and ModifiedChanged event for controls that implement this interface.

Provides access to the validation events and properties property for controls that support validation.

All wisej components implement this interface.

All wisej controls derived from the Control class must implement this interface.

Allows an object to serialize itself.

Last updated

Was this helpful?