TX Text Control .NET Server

Javascript: SubTextPartEventArgs.number Property

Property|Introduced in 24.0

Description

The subtextpart's number. The first subtextpart has the number 1. The number is defined through the textflow. A textpart with a smaller start position has a smaller number. When an outer subtextpart has the same start position than one of its nested textparts the outer textpart has a smaller number.

Syntax

<number> SubTextPartEventArgs.number

Examples

The following example demonstrates SubTextPartEventArgs.number in a practical document-editing workflow. The subtextpart's number. The first subtextpart has the number 1. The number is defined through the textflow. A textpart with a smaller start position has a smaller number. When an outer subtextpart has the same start position than one of its nested textparts the outer textpart has a smaller number.

function inspectNumber(subTextPartEventArgs) {
    const number = subTextPartEventArgs.number;
    console.log("number:", number);
}