IMaskCharacterProvider
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public interface IMaskCharacterProvider
Derived Classes:
Properties
Gets or sets the character used to represent the absence of user input.
char PromptChar { get; set; }
The character used to prompt the user for input. The default is an underscore(_).
Methods
Raises the delete operation for currently selected mask part. 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.
Occurs when a key is pressed.
void KeyDown(object sender, KeyEventArgs e)
The sender.
eKeyEventArgsKey event arguments.
Occurs when a key is pressed.
void KeyPress(object sender, KeyPressEventArgs e)
The sender.
eKeyPressEventArgsKey event arguments.
Removes the assigned characters between the specified positions from the formatted string.
Sets the specified string within the formatted string, returning the status of the operation.
bool Set(string input, out int testPosition, out MaskedTextResultHint resultHint)
The string value that replaces the existing value.
testPositionintNot used.
resultHintMaskedTextResultHintA System.ComponentModel.MaskedTextResultHint that succinctly describes the result of the replacement operation. An output parameter.
Returns:true if the operation is successful, false if not.
Returns the formatted string, optionally including prompt and literal characters.
string ToString(bool includePrompt, bool includeLiterals)
true to include prompt characters in the return string; otherwise, false.
includeLiteralsbooltrue to include literal characters in the return string; otherwise, false.
Returns:The formatted System.String that includes all the assigned character values and optionally includes literals and prompts.