System.ComponentModel.MaskedTextProvider.FindNonEditPositionInRange C# (CSharp) Method

FindNonEditPositionInRange() public method

Gets the position of the first non edit position in the test string; the search is performed in the specified positions range and in the specified direction. The positions are relative to the test string. Returns InvalidIndex if it doesn't find one.
public FindNonEditPositionInRange ( int startPosition, int endPosition, bool direction ) : int
startPosition int
endPosition int
direction bool
return int
        public int FindNonEditPositionInRange(int startPosition, int endPosition, bool direction)
        {
            CharType literalCharFlags = CharType.Literal | CharType.Separator;
            return FindPositionInRange(startPosition, endPosition, direction, literalCharFlags);
        }