System.ComponentModel.MaskedTextProvider.FindUnassignedEditPositionFrom C# (CSharp) Méthode

FindUnassignedEditPositionFrom() public méthode

Gets the position of the first edit char in the test string, the search starts from the specified position included. Returns InvalidIndex if it doesn't find one.
public FindUnassignedEditPositionFrom ( int position, bool direction ) : int
position int
direction bool
Résultat int
        public int FindUnassignedEditPositionFrom(int position, bool direction)
        {
            int startPosition;
            int endPosition;

            if (direction == forward)
            {
                startPosition = position;
                endPosition = _testString.Length - 1;
            }
            else
            {
                startPosition = 0;
                endPosition = position;
            }

            return FindEditPositionInRange(startPosition, endPosition, direction, editUnassigned);
        }