# Javascript: SubTextPartInfo.length Property

> Optional. The length of the SubTextPart.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 26.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: SubTextPartInfo.length Property
- **151 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/subtextpartinfo/length-property/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/subtextpartinfo/length-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/subtextpartinfo/length-property/llms-full.txt

---

### Description

Optional. The length of the SubTextPart.

### Syntax

```javascript
<number> SubTextPartInfo.length
```

### Examples

The following example demonstrates `SubTextPartInfo.length` in a practical document-editing workflow. Optional. The length of the SubTextPart.

```javascript
function inspectLength(subTextPartInfo) {
    const length = subTextPartInfo.length;
    console.log("length:", length);
}
```

---

## Nearby

- **Previous:** [Javascript: SubTextPartInfo.id Property](https://docs.textcontrol.com/ds-server/reference/javascript/subtextpartinfo/id-property/llms-full.txt)
- **Next:** [Javascript: SubTextPartInfo.name Property](https://docs.textcontrol.com/ds-server/reference/javascript/subtextpartinfo/name-property/llms-full.txt)
