TextLayout.getBounds

Returns the bounds for the specified range of characters. The bounds is the smallest rectangle that encompasses all characters in the range. The start and end offsets are inclusive and will be clamped if out of range.

@param start the start offset @param end the end offset @return the bounds of the character range

@exception SWTException <ul> <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> </ul>

  1. Rectangle getBounds()
  2. Rectangle getBounds(int start, int end)
    class TextLayout
    getBounds
    (
    int start
    ,
    int end
    )

Meta