System.ComponentModel.MaskedTextProvider.FindEditPositionFrom Method

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

Syntax

public int FindEditPositionFrom (int position, bool direction)

Parameters

position
The zero-based position in the formatted string to start the search.
direction
A bool indicating the search direction; either true to search forward or false to search backward.

Returns

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

Remarks

The MaskedTextProvider.FindEditPositionFrom(int, bool) method is used to search for the next assigned or unassigned editable position in the formatted string after the specified position.

The MaskedTextProvider.FindNonEditPositionFrom(int, bool) method is the complement of this method.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0