# Javascript: SubTextPartEventArgs.number Property

> 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.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 24.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: SubTextPartEventArgs.number Property
- **251 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/subtextparteventargs/number-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/subtextparteventargs/number-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/subtextparteventargs/number-property/llms-full.txt

---

### 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

```javascript
<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.

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

---

## Nearby

- **Previous:** [Javascript: SubTextPartEventArgs.nestedLevel Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/subtextparteventargs/nestedlevel-property/llms-full.txt)
- **Next:** [Javascript: SubTextPartEventArgs.start Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/subtextparteventargs/start-property/llms-full.txt)
