TextLayout.setDescent

Sets the descent of the receiver. The descent is distance in pixels from the baseline to the bottom of the line and it is applied to all lines. The default value is <code>-1</code> which means that the descent is calculated from the line fonts.

@param descent the new descent

@exception IllegalArgumentException <ul> <li>ERROR_INVALID_ARGUMENT - if the descent is less than <code>-1</code></li> </ul> @exception SWTException <ul> <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> </ul>

@see #setAscent(int) @see #getLineMetrics(int)

class TextLayout
void
setDescent
()

Meta