# SubTextPartEventArgs Object

> The event argument object for SubTextPart related events. (e. g. the subTextPartEntered event)

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 24.0
- **Path:** DS Server > Reference > JavaScript API > SubTextPartEventArgs Object
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/subtextparteventargs/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/subtextparteventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/subtextparteventargs/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/ds-server/reference/javascript/subtextparteventargs/#description)
- [Syntax](https://docs.textcontrol.com/ds-server/reference/javascript/subtextparteventargs/#syntax)
- [Examples](https://docs.textcontrol.com/ds-server/reference/javascript/subtextparteventargs/#examples)
- [Members](https://docs.textcontrol.com/ds-server/reference/javascript/subtextparteventargs/#members)

---

## In This Section

- [Javascript: SubTextPartEventArgs.id Property](https://docs.textcontrol.com/ds-server/reference/javascript/subtextparteventargs/id-property/llms.txt): The subtextpart's identifier. Must be a one-based value. A value of zero indicates that the subtextpart has no identifier.
- [Javascript: SubTextPartEventArgs.length Property](https://docs.textcontrol.com/ds-server/reference/javascript/subtextparteventargs/length-property/llms.txt): The length of the SubTextPart in characters.
- [Javascript: SubTextPartEventArgs.name Property](https://docs.textcontrol.com/ds-server/reference/javascript/subtextparteventargs/name-property/llms.txt): The name of the subtextpart. An empty string indicates that the subtextpart has no name.
- [Javascript: SubTextPartEventArgs.nestedLevel Property](https://docs.textcontrol.com/ds-server/reference/javascript/subtextparteventargs/nestedlevel-property/llms.txt): The subtextpart's nested level. The top level is 1.
- [Javascript: SubTextPartEventArgs.number Property](https://docs.textcontrol.com/ds-server/reference/javascript/subtextparteventargs/number-property/llms.txt): 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: SubTextPartEventArgs.start Property](https://docs.textcontrol.com/ds-server/reference/javascript/subtextparteventargs/start-property/llms.txt): The 1-based position of the first character which belongs to the subtextpart.

---

## Nearby

- **Previous:** [Javascript: SubTextPartCollection.remove Method](https://docs.textcontrol.com/ds-server/reference/javascript/subtextpartcollection/remove-method/llms.txt)
- **Next:** [Javascript: SubTextPartEventArgs.id Property](https://docs.textcontrol.com/ds-server/reference/javascript/subtextparteventargs/id-property/llms.txt)
