CLabel.setAlignment

Set the alignment of the CLabel. Use the values LEFT, CENTER and RIGHT to align image and text within the available space.

@param align the alignment style of LEFT, RIGHT or CENTER

@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> <li>ERROR_INVALID_ARGUMENT - if the value of align is not one of SWT.LEFT, SWT.RIGHT or SWT.CENTER</li> </ul>

class CLabel
void
setAlignment
(
int align_
)

Meta