# CommentCallbackData Object

> The type of the response parameter of the AddCommentCallback callback function.

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

---

### Description

The type of the response parameter of the [AddCommentCallback](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/addcommentcallback/llms-full.txt) callback function.

### Syntax

```javascript
{
   comment: <CommentedText>,
   addResult: <AddResult>
}
```

### Examples

The following example demonstrates `CommentCallbackData` in a practical document-editing workflow. The type of the response parameter of the AddCommentCallback callback function.

```javascript
function inspectCommentCallbackData(commentCallbackData) {
    console.log("comment:", commentCallbackData.comment);
    console.log("add result:", commentCallbackData.addResult);
}
```

---

## In This Section

- [Javascript: CommentCallbackData.addResult Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/commentcallbackdata/addresult-property/llms-full.txt): Indicates whether the comment was added successfully.
- [Javascript: CommentCallbackData.comment Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/commentcallbackdata/comment-property/llms-full.txt): The added comment. Is null if no comment could be added.

---

## Nearby

- **Previous:** [Javascript: Collection.getCount Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/collection/getcount-method/llms-full.txt)
- **Next:** [Javascript: CommentCallbackData.addResult Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/commentcallbackdata/addresult-property/llms-full.txt)
