# CommentText Property

> Returns or sets the text of the comment identified by a Long CommentId as a String, to read or change the content of existing comments in code.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > CommentText Property
- **134 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commenttext-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commenttext-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commenttext-property/llms-full.txt

---

Returns or sets the comment's text.

Introduced: 30.0.

### Syntax

```vbscript
TXTextControl.CommentText(CommentId)[= string]
```

### Parameters

| Parameter | Description |
|---|---|
| CommentId | Specifies a comment identifier. |

### Data Types

| Name | Data type |
|---|---|
| CommentId | Long |
| Property value | String |

### See Also

- [Programming Category: Commenting a document](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/comments/llms-full.txt)

---

## Nearby

- **Previous:** [CommentStart Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commentstart-property/llms-full.txt)
- **Next:** [CommentUserName Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commentusername-property/llms-full.txt)
