# Javascript: SubTextPartEventArgs.name Property

> The name of the subtextpart. An empty string indicates that the subtextpart has no name.

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

---

### Description

The name of the subtextpart. An empty string indicates that the subtextpart has no name.

### Syntax

```javascript
<string> SubTextPartEventArgs.name
```

### Examples

The following example demonstrates `SubTextPartEventArgs.name` in a practical document-editing workflow. The name of the subtextpart. An empty string indicates that the subtextpart has no name.

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

---

## Nearby

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