Javascript: TXTextControl.ParagraphFormat.getAlignment Method

Gets the horizontal text alignment. Takes a callback function with one parameter as a parameter. The callback function is called with the value as parameter upon receiving the horizontal alignment information from the server.

Syntax

[JavaScript]
<void> ParagraphFormat.getAlignment(<function> callback);
Parameter Description
callback

A function with one parameter. The callback function is called with the value as parameter upon receiving the horizontal alignment information from the server.

Remarks

The property's default value is HorizontalAlignment.Left. The property returns its default value when the text selection contains multiple paragraphs with mixed line spacing.

See Also