StyledText.getBaseline

Returns the baseline at the given offset, in pixels.

@param offset the offset

@return baseline the baseline

@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 getBaseline()
  2. int getBaseline(int offset)
    class StyledText
    int
    getBaseline
    (
    int offset
    )

Meta