GC.textExtent

Returns the extent of the given str. Tab expansion and carriage return processing are performed. <p> The <em>extent</em> of a str is the width and height of the rectangular area it would cover if drawn in a particular font (in this case, the current font in the receiver). </p>

@param str the str to measure @return a point containing the extent of the str

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

  1. Point textExtent(String str)
    class GC
    textExtent
    (
    String str
    )
  2. Point textExtent(String str, int flags)

Meta