poITextAttribute SetHorizontalAlignment

Sets the font horizontal alignment.

Syntax

poITextAttribute_handle SetHorizontalAlignment align

Application

HyperView Tcl Modify

Description

This command sets the font horizontal alignment.

Inputs

align
The horizontal alignment for the text. Options include: "left", "right", and "center".

Example

To center the text horizontally:
hwi GetSessionHandle mySessionName
mySessionName GetProjectHandle myProjectName
myProjectName GetPageHandle myPageName 1
myPageName GetWindowHandle myWinName 1
myWinName GetClientHandle myClientName
myClientName GetLegendHandle myLegendName 1
myLegendName GetHeaderAttributeHandle myAttrName
myAttrName SetHorizontalAlignment center

Errors

Returns 0 if successful, otherwise an error code.