Microsoft SDK for Java

DhStyleBase.setTextAlign

Sets the text alignment style.

Syntax

public void setTextAlign( int nAlignment )

Parameters

nAlignment

The new alignment setting. This can be one of following values defined in DhAlignment:

LEFT (default)

RIGHT

CENTER

JUSTIFY

Exceptions

WFCInvalidArgumentException thrown if nAlignment is not one of the correct values.

See Also   getTextAlign

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