StyledText.getLineHeight

Returns the line height at the given offset.

@param offset the offset

@return line height in pixels

@exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul> @exception IllegalArgumentException <ul> <li>ERROR_INVALID_RANGE when the offset is outside the valid range (< 0 or > getCharCount())</li> </ul>

@since 3.2

  1. int getLineHeight()
  2. int getLineHeight(int offset)
    class StyledText
    int
    getLineHeight
    (
    int offset
    )

Meta