System.ComponentModel.MaskedTextProvider.ResetOnSpace Property

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

Syntax

public bool ResetOnSpace { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

System.ComponentModel.MaskedTextProvider can treat two categories of characters, spaces and prompt characters, in a special manner. Normally, each input character will be tested against the mask and either accepted or rejected. Setting the MaskedTextProvider.ResetOnSpace property to true will result in the current mask character position being cleared and the current position being advanced to the next editable character.

MaskedTextProvider.ResetOnSpace is useful when assigning text that was saved excluding the prompt, where the prompt is replaced with a space. Before restoring such a string, setting MaskedTextProvider.ResetOnSpace to true will reset the prompt characters at the positions occupied by spaces in the input string.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0