MaskedTextProvider::Remove Method (Int32%, MaskedTextResultHint%)

 

Removes the last assigned character from the formatted string, and then outputs the removal position and descriptive information.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public:
bool Remove(
	[OutAttribute] int% testPosition,
	[OutAttribute] MaskedTextResultHint% resultHint
)

Parameters

testPosition
Type: System::Int32%

The zero-based position in the formatted string where the character was actually removed. An output parameter.

resultHint
Type: System.ComponentModel::MaskedTextResultHint%

A MaskedTextResultHint that succinctly describes the result of the operation. An output parameter.

Return Value

Type: System::Boolean

true if the character was successfully removed; otherwise, false.

The Remove method has no effect if there are no characters assigned to the mask yet.

When the last assigned character is removed from the formatted string, the editable mask character is reset for that position, allowing subsequent input.

.NET Framework
Available since 2.0
Return to top
Show: