MaskedTextProvider::LastAssignedPosition Property

 

Gets the index in the mask of the rightmost input character that has been assigned to the mask.

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

public:
property int LastAssignedPosition {
	int get();
}

Property Value

Type: System::Int32

If at least one input character has been assigned to the mask, an Int32 containing the index of rightmost assigned position; otherwise, if no position has been assigned, InvalidIndex.

The LastAssignedPosition property represents the farthest edit position in the mask, relative to the origin, that has been assigned an input character. For languages read left-to-right (LTR), such as English, this is the rightmost assigned position; for languages read right-to-left (RTL), this would be the leftmost position.

.NET Framework
Available since 2.0
Return to top
Show: