# SubTextPartInfo Object

> Specifies the properties of a new SubTextPart added via the (deprecated) method TextPart.addSubTextPart.

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

---

### Description

Specifies the properties of a new SubTextPart added via the (deprecated) method [TextPart.addSubTextPart](https://docs.textcontrol.com/ds-server/reference/javascript/textpart/addsubtextpart-method/llms-full.txt).

### Syntax

```javascript
{
   name: <string>,
   [id: <number>],
   [start: <number>],
   [length: <number>],
   [highlightMode: <HighlightMode>]
}
```

### Examples

The following example demonstrates `SubTextPartInfo` in a practical document-editing workflow. It specifies the properties of a new SubTextPart added via the (deprecated) method TextPart.addSubTextPart.

```javascript
function inspectSubTextPartInfo(subTextPartInfo) {
    console.log("name:", subTextPartInfo.name);
    console.log("id:", subTextPartInfo.id);
    console.log("start:", subTextPartInfo.start);
    console.log("length:", subTextPartInfo.length);
}
```

---

## In This Section

- [Javascript: SubTextPartInfo.highlightMode Property](https://docs.textcontrol.com/ds-server/reference/javascript/subtextpartinfo/highlightmode-property/llms-full.txt): Optional. The highlight mode.
- [Javascript: SubTextPartInfo.id Property](https://docs.textcontrol.com/ds-server/reference/javascript/subtextpartinfo/id-property/llms-full.txt): Optional. The ID of the SubTextPart.
- [Javascript: SubTextPartInfo.length Property](https://docs.textcontrol.com/ds-server/reference/javascript/subtextpartinfo/length-property/llms-full.txt): Optional. The length of the SubTextPart.
- [Javascript: SubTextPartInfo.name Property](https://docs.textcontrol.com/ds-server/reference/javascript/subtextpartinfo/name-property/llms-full.txt): The name of the SubTextPart.
- [Javascript: SubTextPartInfo.start Property](https://docs.textcontrol.com/ds-server/reference/javascript/subtextpartinfo/start-property/llms-full.txt): Optional. The one-based starting position of the SubTextPart.

---

## Nearby

- **Previous:** [Javascript: SubTextPartEventArgs.start Property](https://docs.textcontrol.com/ds-server/reference/javascript/subtextparteventargs/start-property/llms-full.txt)
- **Next:** [Javascript: SubTextPartInfo.highlightMode Property](https://docs.textcontrol.com/ds-server/reference/javascript/subtextpartinfo/highlightmode-property/llms-full.txt)
