DS Server

Javascript: TXTextControl.TextField.bounds Property

PropertyDeprecated|Introduced in 25.0

Description

Obsolete. This property will be removed in one of the next versions. The bounding rectangle of a text field. The bounding rectangle is the smallest rectangle which contains all characters of the field's text.

Syntax

<Rectangle> TXTextControl.TextField.bounds

Examples

The following example demonstrates TXTextControl.TextField.bounds in a practical document-editing workflow. Obsolete. This property will be removed in one of the next versions. The bounding rectangle of a text field. The bounding rectangle is the smallest rectangle which contains all characters of the field's text.

function inspectBounds(textField) {
    const bounds = textField.bounds;
    console.log("bounds:", bounds);
}

Limitations

Read Only.