StyledText.setAlignment

Sets the alignment of the widget. The argument should be one of <code>SWT.LEFT</code>, <code>SWT.CENTER</code> or <code>SWT.RIGHT</code>. The alignment applies for all lines. </p><p> Note that if <code>SWT.MULTI</code> is set, then <code>SWT.WRAP</code> must also be set in order to stabilize the right edge before setting alignment. </p>

@param alignment the new alignment

@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>

@see #setLineAlignment(int, int, int)

@since 3.2

class StyledText
void
setAlignment
()

Meta