# CommentedTextInfo Object

> Information about a comment. Is used by class CommentEventArgs.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 30.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > CommentedTextInfo Object
- **757 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/commentedtextinfo/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/commentedtextinfo/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/commentedtextinfo/llms-full.txt

---

### Description

Information about a comment. Is used by class [CommentEventArgs](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/commenteventargs/llms-full.txt).

### Syntax

```javascript
{
   active: <boolean>,
   comment: <String>,
   creationTime: <Number>,
   highlightColor: <String>,
   highlightMode: <HighlightMode>,
   id: <Number>,
   length: <Number>,
   number: <Number>,
   start: <Number>,
   userName: <String>
}
```

### Examples

The following example demonstrates `CommentedTextInfo` in a practical document-editing workflow. Information about a comment. Is used by class CommentEventArgs.

```javascript
function inspectCommentedTextInfo(commentedTextInfo) {
    console.log("active:", commentedTextInfo.active);
    console.log("comment:", commentedTextInfo.comment);
    console.log("creation time:", commentedTextInfo.creationTime);
    console.log("highlight color:", commentedTextInfo.highlightColor);
}
```

---

## In This Section

- [Javascript: CommentedTextInfo.active Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/commentedtextinfo/active-property/llms-full.txt): Comment activation state.
- [Javascript: CommentedTextInfo.comment Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/commentedtextinfo/comment-property/llms-full.txt): The comment text.
- [Javascript: CommentedTextInfo.creationTime Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/commentedtextinfo/creationtime-property/llms-full.txt): Creation time as a Unix time stamp in milliseconds.
- [Javascript: CommentedTextInfo.highlightColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/commentedtextinfo/highlightcolor-property/llms-full.txt): Highlight color as a CSS color string.
- [Javascript: CommentedTextInfo.highlightMode Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/commentedtextinfo/highlightmode-property/llms-full.txt): The comment's highlight mode.
- [Javascript: CommentedTextInfo.id Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/commentedtextinfo/id-property/llms-full.txt): The comment's identifier.
- [Javascript: CommentedTextInfo.length Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/commentedtextinfo/length-property/llms-full.txt): The comment's length in characters.
- [Javascript: CommentedTextInfo.number Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/commentedtextinfo/number-property/llms-full.txt): The number of the comment in the document's text flow.
- [Javascript: CommentedTextInfo.start Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/commentedtextinfo/start-property/llms-full.txt): The comment's 1-based start position in the document.
- [Javascript: CommentedTextInfo.userName Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/commentedtextinfo/username-property/llms-full.txt): The name of the user who made the comment.

---

## Nearby

- **Previous:** [Javascript: CommentedText.setID Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/commentedtext/setid-method/llms-full.txt)
- **Next:** [Javascript: CommentedTextInfo.active Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/commentedtextinfo/active-property/llms-full.txt)
