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

IMaskProvider

Interface

Definition

Properties

Gets the culture that determines the value of the localizable separators and placeholders in the input mask.

C#
CultureInfo Culture { get; }
Property Value:

A System.Globalization.CultureInfo containing the culture information associated with the input mask.

Gets or sets a value indicating whether PromptChar is used to represent the absence of user input when displaying the formatted string.

C#
bool IncludePrompt { get; set; }
Property Value:

true if the prompt character is used to represent the positions where no user input was provided; otherwise, false. The default is true.

Gets the input mask to use at run time.

C#
string Mask { get; }

Gets or sets the character used to represent the absence of user input.

C#
char PromptChar { get; set; }
Property Value:

The character used to prompt the user for input. The default is an underscore(_).

TextBoxItem

RadTextBoxItem

Gets the RadTextBoxItem.

C#
RadTextBoxItem TextBoxItem { get; }

Gets or sets the value.

C#
object Value { get; set; }

Methods

Occurs when the user clicks with the mouse.

C#
bool Click()
Returns:

bool

Not used

Clones this instance.

C#
IMaskProvider Clone()
Returns:

IMaskProvider

The cloned instance.

Deletes selected text. If there is no selection, deletes the first symbol after the cursor. If there is no selection and the cursor is after the last character, does not remove anything.

C#
bool Delete()
Returns:

bool

true

Occurs when a key is pressed.

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

The sender.

eKeyEventArgs

Key event arguments.

Occurs when a key is pressed.

C#
void KeyPress(object sender, KeyPressEventArgs e)
Parameters:senderobject

The sender.

eKeyPressEventArgs

Key press event arguments.

Gets the string interpretation of the value based on the Mask

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

Not used.

includeLiteralsbool

not used.

Returns:

string

The string interpretation of the value based on the mask.

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#
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.