MaskedTextProvider::RemoveAt Method (Int32, Int32, Int32%, MaskedTextResultHint%)
Removes the assigned characters between the specified positions from the formatted string, and then outputs the removal position and descriptive information.
Assembly: System (in System.dll)
public: bool RemoveAt( int startPosition, int endPosition, [OutAttribute] int% testPosition, [OutAttribute] MaskedTextResultHint% resultHint )
Parameters
- startPosition
-
Type:
System::Int32
The zero-based index of the first assigned character to remove.
- endPosition
-
Type:
System::Int32
The zero-based index of the last assigned character to remove.
- testPosition
-
Type:
System::Int32%
If successful, the zero-based position in the formatted string of where the characters were actually removed; otherwise, the first position where the operation failed. An output parameter.
- resultHint
-
Type:
System.ComponentModel::MaskedTextResultHint%
A MaskedTextResultHint that succinctly describes the result of the operation. An output parameter.
The RemoveAt method has no effect if there are no assigned characters at the removal positions specified.
When a character is removed, the remaining higher-positioned characters in the mask will shift to the left to fill in the gap created by the removal. Vacated positions are reset for input. If movement of the characters is prevented by the mask definition, no removal occurs, and RemoveAt returns false.
This version of RemoveAt provides two additional output parameters to convey more information about the operation of the method.
Available since 2.0