GC.getCharWidth

Returns the width of the specified character in the font selected into the receiver. <p> The width is defined as the space taken up by the actual character, not including the leading and tailing whitespace or overhang. </p>

@param ch the character to measure @return the width of the character

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

class GC
int
getCharWidth
(
char ch
)

Meta