Rediger

Del via


MaskedTextProvider.FindEditPositionFrom(Int32, Boolean) Method

Definition

Returns the position of the first editable position after the specified position using the specified search direction.

public:
 int FindEditPositionFrom(int position, bool direction);
public int FindEditPositionFrom (int position, bool direction);
member this.FindEditPositionFrom : int * bool -> int
Public Function FindEditPositionFrom (position As Integer, direction As Boolean) As Integer

Parameters

position
Int32

The zero-based position in the formatted string to start the search.

direction
Boolean

A Boolean indicating the search direction; either true to search forward or false to search backward.

Returns

If successful, an Int32 representing the zero-based position of the first editable position encountered; otherwise InvalidIndex.

Remarks

The FindEditPositionFrom method is used to search for the next assigned or unassigned editable position in the formatted string after the specified position.

The FindNonEditPositionFrom method is the complement of this method.

Applies to

See also