# Comments, Notes and Hyperlinks

> Attach comment threads, notes and hyperlinks to cells with CellComments, CellNote and CellHyperlink, show or hide the comments UI and keep annotations safe.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Sheet Control > Spreadsheet Documents > Comments, Notes and Hyperlinks
- **968 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/spreadsheets/comments/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/spreadsheets/comments/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/spreadsheets/comments/llms-full.txt

---

When a cell needs an explanation, a review remark or a link, you attach a comment, a note or a hyperlink to it. All three add information to the cell without replacing its numeric or formula value. Use worksheet-bound cells, so that the target does not depend on the current selection.

### Work With Comment Threads

Comments support thread-related operations through `cell.comments`, the [Cell.comments](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/cell/comments-property/llms-full.txt) property. It returns the [CellComments](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/cellcomments/llms-full.txt) of the cell, the conversation of that cell:

- [add](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/cellcomments/add-method/llms-full.txt) starts a conversation or appends a reply.
- [edit](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/cellcomments/edit-method/llms-full.txt) changes an entry of the current user.
- [resolve](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/cellcomments/resolve-method/llms-full.txt) resolves or reopens the conversation.
- [remove](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/cellcomments/remove-method/llms-full.txt) removes an entry of the current user, or the whole thread.
- [thread](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/cellcomments/thread-property/llms-full.txt) returns a detached snapshot of the thread.

Set the user name of the control or the workbook, [Spreadsheet.userName](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/spreadsheet/username-property/llms-full.txt) or [Workbook.userName](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbook/username-property/llms-full.txt), to identify the application author.

The comments UI can be shown or hidden through `editor.ui.comments`, the [EditorUi.comments](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/comments-property/llms-full.txt) property. The popups and the sidebar on the screen are not printed worksheet content.

### Add Notes and Hyperlinks

- **Notes** are lightweight cell annotations with supported visibility and bounds settings. [Cell.setNote](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/cell/setnote-method/llms-full.txt) sets the note of a cell, and [Cell.note](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/cell/note-property/llms-full.txt) returns it as a [CellNote](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellnote/llms-full.txt).
- **Hyperlinks** carry a safe target and optional display metadata. [Cell.setHyperlink](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/cell/sethyperlink-method/llms-full.txt) sets the hyperlink of a cell, and [Cell.hyperlink](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/cell/hyperlink-property/llms-full.txt) returns it as a [CellHyperlink](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellhyperlink/llms-full.txt). Follow the documented target validation rather than treating every string as an allowed executable URL.

To follow a hyperlink in the browser editor, select its cell and press Ctrl+Enter, or Ctrl+click the cell. Internal targets such as `#B4` or `#Summary!C3` select a cell in the current workbook. If an internal target is malformed, refers to a missing name or worksheet, or points into an external workbook, activation leaves the current worksheet and selection unchanged.

In the .NET API, the corresponding models are [Comments](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/comments/llms-full.txt), [CellNote](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/cellnote/llms-full.txt) and [CellHyperlink](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/cellhyperlink/llms-full.txt).

### Annotate Cells in the Editor and in Code

In the editor, select a cell and use the commands of the **Review** tab or the context menu for the annotation you need.

In code, inspect the detached snapshots first. Then use the explicit methods to add, update, reply, resolve, remove or change supported properties. Preserve the identity of the thread and the cell when you respond to a comment.

### What Hiding Does Not Protect

Application authorization remains separate: hiding a sidebar is not a permission model.

> Warning
>
> **Private Credentials.** Do not store private credentials in notes, comments, cell values or hyperlinks that will be included in downloadable workbooks.

### Save and Export Annotations

Supported annotations survive the appropriate workbook formats. Visibility on the screen does not imply inclusion in a PDF, so review the document and export options for what is represented in the output. Treat warnings about imported annotations as part of the conversion result.

### Next Steps

- [Events and Cancellation](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/events/llms-full.txt): react to changes in your application.
- [Ribbon and Contextual Commands](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/ribbon/#review-annotate-and-protect): find the comment, note and protection commands of the Review tab.
- [Worksheet Protection](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/protection/llms-full.txt): restrict editing commands on a worksheet.

---

## Nearby

- **Previous:** [Pictures and Shapes](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/pictures-shapes/llms-full.txt)
- **Next:** [Worksheet Protection](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/protection/llms-full.txt)
