TX Text Control .NET Server

Javascript: FrameInfo.textPosition Property

Property|Introduced in 28.0

Description

The frame's character position in the document's text (one-based).

Syntax

<Number> FrameInfo.textPosition

Examples

The following example demonstrates FrameInfo.textPosition in a practical document-editing workflow. The frame's character position in the document's text (one-based).

function inspectTextPosition(frameInfo) {
    const textPosition = frameInfo.textPosition;
    console.log("text position:", textPosition);
}