New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class TextBoxProvider : IMaskProvider

Inheritance: objectTextBoxProvider

Implements: IMaskProvider

Constructors

Initializes a new instance of the TextBoxProvider class.

C#
public TextBoxProvider(RadMaskedEditBoxElement owner)
Parameters:ownerRadMaskedEditBoxElement

The owner RadMaskedEditBoxElement

Fields

C#
protected RadMaskedEditBoxElement owner

Properties

TextBoxItem

RadTextBoxItem

Gets the text box item.

C#
public RadTextBoxItem TextBoxItem { get; }

Implements: IMaskProvider.TextBoxItem

Gets or sets the value.

C#
public object Value { get; set; }

Implements: IMaskProvider.Value

Methods

Clones this instance.

C#
public IMaskProvider Clone()
Returns:

IMaskProvider

The cloned instance.

Implements: IMaskProvider.Clone()

Raises a delete operation over the selected text.

C#
public bool Delete()
Returns:

bool

Implements: IMaskProvider.Delete()

Occurs when a key is pressed.

C#
public void KeyDown(object sender, KeyEventArgs e)
Parameters:senderobject

The sender.

eKeyEventArgs

Key event arguments.

Implements: IMaskProvider.KeyDown(object, KeyEventArgs)

Returns the formatted string.

C#
public string ToString(bool includePrompt, bool includeLiterals)
Parameters:includePromptbool

Not used.

includeLiteralsbool

Not used.

Returns:

string

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

Implements: IMaskProvider.ToString(bool, bool)

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.

C#
public bool Validate(string value)
Parameters:valuestring

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)