GetOffsetAtPoint() public method

public GetOffsetAtPoint ( int x, int y, CoordType coordType ) : int
x int
y int
coordType CoordType
return int
Esempio n. 1
0
        public ITextPatternRange RangeFromPoint(Point screenLocation)
        {
            int offset = text.GetOffsetAtPoint((int)screenLocation.X, (int)screenLocation.Y, CoordType.Screen);

            // TODO: Check this behavior
            if (offset < 0)
            {
                return(null);
            }
            return(new TextRangePattern(accessible, offset, offset));
        }