Back to Devexpress

Comment.Visible Property

officefileapi-devexpress-dot-spreadsheet-dot-comment-8495d2ea.md

latest3.4 KB
Original Source

Comment.Visible Property

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

Declaration

csharp
bool Visible { get; set; }
vb
Property Visible As Boolean

Property Value

TypeDescription
Boolean

True , to show a comment; otherwise, false.

|

Remarks

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.

wpf-spreadsheetcontrol-api-part-1/CS/SpreadsheetControl_WPF_API/SpreadsheetActions/CellActions.cs#L442

csharp
Comment commentA2 = worksheet.Comments.Add(commentedCell, author, "This is a comment");
commentA2.Visible = true;

winforms-spreadsheetcontrol-api-part1/VB/SpreadsheetControl/SpreadsheetActions/CellActions.vb#L438

vb
Dim commentA2 As Comment = worksheet.Comments.Add(commentedCell, author, "This is a comment")
commentA2.Visible = True

wpf-spreadsheetcontrol-api-part-1/VB/SpreadsheetControl_WPF_API/SpreadsheetActions/CellActions.vb#L397

vb
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

Comment Interface

Comment Members

DevExpress.Spreadsheet Namespace