officefileapi-devexpress-dot-spreadsheet-dot-comment-8495d2ea.md
Gets or sets a value indicating whether the comment should be displayed in a cell.
Namespace : DevExpress.Spreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
bool Visible { get; set; }
Property Visible As Boolean
| Type | Description |
|---|---|
| Boolean |
True , to show a comment; otherwise, false.
|
By default, when you programmatically create a new comment and do not set the Visible property, the comment is hidden in the user interface. However, you can still determine that a cell has a comment from the red triangular indicator displayed in the top-right corner of the cell.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Visible property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
Comment commentA2 = worksheet.Comments.Add(commentedCell, author, "This is a comment");
commentA2.Visible = true;
winforms-spreadsheetcontrol-api-part1/VB/SpreadsheetControl/SpreadsheetActions/CellActions.vb#L438
Dim commentA2 As Comment = worksheet.Comments.Add(commentedCell, author, "This is a comment")
commentA2.Visible = True
Dim commentA2 As Comment = worksheet.Comments.Add(commentedCell, author, "This is a comment")
commentA2.Visible = True
See Also
How to: Create, Edit and Copy Simple Notes in Spreadsheet for WinForms