DS Server

Javascript: TextFieldInfo.formattingBounds Property

Property|Introduced in 23.0

Description

The formatting rectangle of a text field.

Syntax

<Rectangle> TextFieldInfo.formattingBounds

Examples

The following example demonstrates TextFieldInfo.formattingBounds in a practical document-editing workflow. The formatting rectangle of a text field.

function inspectFormattingBounds(textFieldInfo) {
    const formattingBounds = textFieldInfo.formattingBounds;
    console.log("formatting bounds:", formattingBounds);
}