System.ComponentModel.MaskedTextProvider.FindUnassignedEditPositionFrom C# (CSharp) 메소드

FindUnassignedEditPositionFrom() 공개 메소드

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
리턴 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);
        }