Microsoft SDK for Java

Label.setTextAlign

Sets a value indicating how text is aligned in a label.

Syntax

public void setTextAlign( int value )

Parameters

value

An integer that specifies how text is aligned in a label. Possible values are constants defined in the HorizontalAlignment class. The default value is HorizontalAlignment.LEFT.

Exceptions

WFCInvalidEnumException thrown if the specified value is not a valid HorizontalAlignment constant.

See Also   getTextAlign

© 1999 Microsoft Corporation. All rights reserved. Terms of use.