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

Definition

Constructors

Initializes a new instance of the IPMaskTextBoxProvider

C#
public IPMaskTextBoxProvider(CultureInfo culture, RadMaskedEditBoxElement owner, bool allowPromptAsInput, char promptChar, char passwordChar, bool restrictToAscii)
Parameters:cultureCultureInfo

The culture.

ownerRadMaskedEditBoxElement

The owner.

allowPromptAsInputbool

A value indicating whether the prompt char is allowed as input.

promptCharchar

The prompt character.

passwordCharchar

The password character.

restrictToAsciibool

A value indicating whether to restrict the input to ASCII.

Properties

Gets or sets the error message.

C#
public virtual string ErrorMessage { get; set; }

Gets or sets the value.

C#
public override object Value { get; set; }

Overrides: StandardMaskTextBoxProvider.Value

Methods

Occurs when a key is pressed.

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

The sender.

eKeyPressEventArgs

Key event arguments.

Overrides: StandardMaskTextBoxProvider.KeyPress(object, KeyPressEventArgs)

Sets the string interpretation of the value, using the KeyPress(object, KeyPressEventArgs) method, char by char.

C#
protected virtual void SetValueCore(object value)
Parameters:valueobject

Returns the formatted string.

C#
public override string ToString()
Returns:

string

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

Overrides: object.ToString()