MaskedTextProvider.LastAssignedPosition Property

Definition

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

public:
 property int LastAssignedPosition { int get(); };
public int LastAssignedPosition { get; }
member this.LastAssignedPosition : int
Public ReadOnly Property LastAssignedPosition As Integer

Property Value

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.

Remarks

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.

Applies to

See also