MaskedTextProvider.Add Method (Char, Int32, MaskedTextResultHint)
Adds the specified input character to the end of the formatted string, and then outputs position and descriptive information.
Assembly: System (in System.dll)
public bool Add( char input, out int testPosition, out MaskedTextResultHint resultHint )
- Type: System.Int32
The zero-based position in the formatted string where the attempt was made to add the character. An output parameter.
Return ValueType: System.Boolean
true if the input character was added successfully; otherwise false.
The method attempts to add the input character value to the first available position in the formatted string after the position that was last assigned, which is represented by the LastAssignedPosition property. This method will fail if all available positions are before the last assigned position. This method will fail for any of the following reasons:
The input value, input, is not printable, or it does not match its corresponding mask element.
There are zero available edit positions in the formatted string, or there are no available edit positions after the last assigned position.