# Comments Class

> Comments class in the TX Sheet Control .NET API: One cell conversation; new entries use the owner's current userName and preserve original author metadata.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **Namespace:** `TXTextControl.TXSheetControl.Server`
- **Package:** `TXTextControl.TXSheetControl.Server` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Package:** `TXTextControl.TXSheetControl.Blazor` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Inherits:** `TXTextControl.TXSheetControl.Server.DocumentObject`
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > Comments Class
- **872 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/comments/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/comments/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/comments/llms-full.txt

---

One cell conversation; new entries use the owner's current userName and preserve original author metadata.

### Syntax

```csharp
public class Comments
```

### Members

#### Methods

| Method | Description |
|---|---|
| [AddAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/comments/addasync-method/llms-full.txt) | Starts a thread or appends a reply using the current runtime userName. |
| [EditAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/comments/editasync-method/llms-full.txt) | Edits an entry owned by the current author, retaining its original creation time. |
| [GetThreadAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/comments/getthreadasync-method/llms-full.txt) | Reads the detached conversation, or null when the cell has no comments. |
| [RemoveAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/comments/removeasync-method/llms-full.txt) | Removes an authored entry, or the complete cell conversation when omitted. |
| [ResolveAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/comments/resolveasync-method/llms-full.txt) | Resolves or reopens a thread without rewriting its entries. |

### Examples

Build a small report using this document API and return its PDF bytes. Pass a live control with a fresh workbook; the caller owns its lifetime.

```csharp
using TXTextControl.TXSheetControl.Server;

async Task<byte[]> CreateCommentsReportAsync(ServerSheetControl control)
{
    var book = control.Workbook;
    var sheet = await book.Sheets.AtAsync(0);
    await sheet.Cell("B8").SetValueAsync(120);
    await sheet.Cell("B9").SetValueAsync(80);
    await sheet.Cell("B10").SetFormulaAsync("=SUM(B8:B9)");

    var comments = sheet.Cell("B10").Comments;
    var commentId = await comments.AddAsync("Please review this invoice total.");
    await comments.ResolveAsync();
    return await control.SaveAsync(StreamType.PDF);
}
```

### See Also

- [TXTextControl.TXSheetControl.Server Namespace](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/llms-full.txt)
- [Comments, Notes and Hyperlinks](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/comments/llms-full.txt)

---

## In This Section

- [Comments.AddAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/comments/addasync-method/llms-full.txt): Comments.AddAsync method in the TX Sheet Control .NET API: Starts a thread or appends a reply using the current runtime userName.
- [Comments.EditAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/comments/editasync-method/llms-full.txt): Comments.EditAsync method in the TX Sheet Control .NET API: Edits an entry owned by the current author, retaining its original creation time.
- [Comments.GetThreadAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/comments/getthreadasync-method/llms-full.txt): Comments.GetThreadAsync method in the TX Sheet Control .NET API: Reads the detached conversation, or null when the cell has no comments.
- [Comments.RemoveAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/comments/removeasync-method/llms-full.txt): Comments.RemoveAsync method in the TX Sheet Control .NET API: Removes an authored entry, or the complete cell conversation when omitted.
- [Comments.ResolveAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/comments/resolveasync-method/llms-full.txt): Comments.ResolveAsync method in the TX Sheet Control .NET API: Resolves or reopens a thread without rewriting its entries.

---

## Nearby

- **Previous:** [CommentEntry.UserName Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/commententry/username-property/llms-full.txt)
- **Next:** [Comments.AddAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/comments/addasync-method/llms-full.txt)
