Atspi.Text.GetOffsetAtPoint C# (CSharp) Method

GetOffsetAtPoint() public method

public GetOffsetAtPoint ( int x, int y, CoordType coordType ) : int
x int
y int
coordType CoordType
return int
        public int GetOffsetAtPoint(int x, int y, CoordType coordType)
        {
            return proxy.GetOffsetAtPoint (x, y, coordType);
        }

Usage Example

コード例 #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));
        }