System.ComponentModel.MaskedTextProvider.VerifyEscapeChar Method

Tests whether the specified character would be escaped at the specified position.

Syntax

public bool VerifyEscapeChar (char input, int position)

Parameters

input
The char value to test.
position
The position in the mask to test the input character against.

Returns

true if the specified character would be escaped at the specified position; otherwise, false.

Remarks

A character is said to be escaped if it is valid input, but is not assigned to that position in the formatted string. Escaped characters fall into the following three categories:

The MaskedTextProvider.VerifyEscapeChar(char, int) method will also return false if the pos parameter is less than zero or greater than the MaskedTextProvider.Length of the MaskedTextProvider.Mask.

Requirements

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