Class
TextBoxProvider

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class TextBoxProvider : IMaskProvider

Inheritance: objectTextBoxProvider

Implements: IMaskProvider

Constructors

TextBoxProvider(RadMaskedEditBoxElement)

Initializes a new instance of the TextBoxProvider class.

Declaration

cs-api-definition
public TextBoxProvider(RadMaskedEditBoxElement owner)

Parameters

owner

RadMaskedEditBoxElement

The owner RadMaskedEditBoxElement

Fields

owner

Declaration

cs-api-definition
protected RadMaskedEditBoxElement owner

Field Value

RadMaskedEditBoxElement

Properties

TextBoxItem

Gets the text box item.

Declaration

cs-api-definition
public RadTextBoxItem TextBoxItem { get; }

Property Value

RadTextBoxItem

Implements IMaskProvider.TextBoxItem

Value

Gets or sets the value.

Declaration

cs-api-definition
public object Value { get; set; }

Property Value

object

Implements IMaskProvider.Value

Methods

Clone()

Clones this instance.

Declaration

cs-api-definition
public IMaskProvider Clone()

Returns

IMaskProvider

The cloned instance.

Implements IMaskProvider.Clone()

Delete()

Raises a delete operation over the selected text.

Declaration

cs-api-definition
public bool Delete()

Returns

bool

Implements IMaskProvider.Delete()

KeyDown(object, KeyEventArgs)

Occurs when a key is pressed.

Declaration

cs-api-definition
public void KeyDown(object sender, KeyEventArgs e)

Parameters

sender

object

The sender.

e

KeyEventArgs

Key event arguments.

Implements IMaskProvider.KeyDown(object, KeyEventArgs)

ToString(bool, bool)

Returns the formatted string.

Declaration

cs-api-definition
public string ToString(bool includePrompt, bool includeLiterals)

Parameters

includePrompt

bool

Not used.

includeLiterals

bool

Not used.

Returns

string

The formatted System.String that includes all the assigned character values.

Implements IMaskProvider.ToString(bool, bool)

Validate(string)

Validates the given string value and sets it as Value if the value is valid. If the value cannot be parsed to the underlying data type of the Value, it is reset to its default value.

Declaration

cs-api-definition
public bool Validate(string value)

Parameters

value

string

THe string value that is about to be set to the Value.

Returns

bool

A value indicating whether the string value is valid.

Implements IMaskProvider.Validate(string)