[]
        
(Showing Draft Content)

C1.Win.InputPanel.InputMaskedTextBox

InputMaskedTextBox Class

Represents a masked text box element in a C1InputPanel control.

Inheritance
InputMaskedTextBox
Namespace: C1.Win.InputPanel
Assembly: C1.Win.InputPanel.8.dll
Syntax
public class InputMaskedTextBox : InputComponent, IBindableComponent, IComponent, IDisposable, IInputXmlSerializable

Constructors

Name Description
InputMaskedTextBox()

Initializes a new instance of an InputMaskedTextBox.

Properties

Name Description
AllowPromptAsInput

Indicates whether the prompt character is valid as input.

AsciiOnly

Indicates whether only ASCII characters are accepted as valid input.

BeepOnError

Indicates whether the masked text box will beep when an invalid character is typed.

Content

Gets text input by the user without literal and prompt characters.

ContextMenuStrip

Gets or sets the context menu strip associated with the text box.

CutCopyMaskFormat

Indicates whether the text to be copied to the clipboard includes literals and/or prompt characters.

DefaultElementWidth

Gets the default width of the InputMaskedTextBox.

DefaultWidth

Gets the default width of the InputMaskedTextBox.

HidePromptOnLeave

Gets or sets a value indicating whether the prompt characters in the input mask are hidden when the masked text box loses focus.

InsertKeyMode

Gets or sets the text insertion mode of the masked text box.

IsOverwriteMode

Gets a value that specifies whether new user input overwrites existing input.

Mask

Gets or sets the input mask to use at run time.

MaskCompleted

Gets a value indicating whether all required inputs have been entered into the input mask.

MaskFull

Gets a value indicating whether all required and optional inputs have been entered into the input mask.

MaskedTextBox

Gets the MaskedTextBox control contained in this InputMaskedTextBox.

MaskedTextProvider

Gets the MaskedTextProvider used by this InputMaskedTextBox.

NotSetVerticalAlign

Gets actual vertical alignment when the VerticalAlign property is equal to NotSet.

PromptChar

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

ReadOnly

Gets or sets a value indicating whether the contents of the component can be changed.

ResetOnPrompt

Gets or sets a value that determines how an input character that matches the prompt character should be handled.

ResetOnSpace

Gets or sets a value that determines how a space input character should be handled.

SkipLiterals

Gets or sets a value indicating whether the user is allowed to reenter literal values.

Text

Gets or sets the text associated with the component.

TextAlign

Gets or sets how text is aligned in the InputMaskedTextBox.

TextMaskFormat

Indicates whether the string returned from the Text property includes literals and/or prompt characters.

ValidatingType

Gets or sets the data type used to verify the data input by the user.

Methods

Name Description
OnIsOverwriteModeChanged(EventArgs)

Raises the IsOverwriteModeChanged event.

OnMaskChanged(EventArgs)

Raises the MaskChanged event.

OnMaskInputRejected(MaskInputRejectedEventArgs)

Raises the MaskInputRejected event.

OnTypeValidationCompleted(TypeValidationEventArgs)

Raises the TypeValidationCompleted event.

ValidateText()

Converts the user input string to an instance of the validating type.

Events

Name Description
IsOverwriteModeChanged

Fires after the insert mode has changed.

MaskChanged

Fires when the value of the Mask property changes.

MaskInputRejected

Occurs when the input character or text does not comply with the mask specification.

TypeValidationCompleted

Fires when InputMaskedTextBox has finished parsing the current value using the ValidatingType property.