Label.setAlignment

Controls how text and images will be displayed in the receiver. The argument should be one of <code>LEFT</code>, <code>RIGHT</code> or <code>CENTER</code>. If the receiver is a <code>SEPARATOR</code> label, the argument is ignored and the alignment is not changed.

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

class Label
void
setAlignment
()

Meta