GetRangeExtents() public method

public GetRangeExtents ( int startOffset, int endOffset, int &x, int &y, int &width, int &height, CoordType coordType ) : void
startOffset int
endOffset int
x int
y int
width int
height int
coordType CoordType
return void
コード例 #1
0
        public Rect [] GetBoundingRectangles()
        {
            Component comp = accessible.QueryComponent();

            if (comp == null)
            {
                return(new Rect [0]);                   // should never happen
            }
            int x, y, width, height;

            text.GetRangeExtents(startOffset, endOffset,
                                 out x, out y, out width, out height,
                                 CoordType.Screen);
            Rect [] ret = new Rect [1];
            ret [0] = new Rect(x, y, width, height);
            return(ret);
        }