Javascript: TXTextControl.ParagraphFormat.getDirection Method

Gets the writing direction. A paragraph's writing direction can be either left to right or right to left. Takes a callback function with one parameter as a parameter. The callback function is called with the value as parameter upon receiving the information from the server.

Syntax

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

A function with one parameter. The callback function is called with the value as parameter upon receiving the information from the server. The value is one of the enumeration values of Direction.

Remarks

The property's default value is Direction.LeftToRight. The property returns its default value, if the text selection contains multiple paragraphs with mixed direction.

See Also