Javascript: TXTextControl.ParagraphFormat.getTopDistance Method

Gets a top distance, in twips, between this and the previous paragraph. 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.getTopDistance(<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. This parameter is the top distance, in twips, between this and the previous paragraph.

Remarks

The property's default value is 0. The property returns its default value, if the text selection contains multiple paragraphs with different values for this property.

See Also