NativeExcel for .Net Developer's Reference

IComment.Visible Property

Gets or sets a value that indicates whether the comment is visible.

[Visual Basic]
PropertyVisibleAsBoolean
[C#]
boolVisible{get;set;}
[C++]
__propertyboolget_Visible();
__propertyvoidset_Visible(bool);
[JScript]
functiongetVisible():bool
functionsetVisible(bool);

Property Value

true if the comment is visible; otherwise, false. The default value is false.

Example

This example sets the comment for cell E5 to be always visible.

[C#]
book.Worksheets[1].Range["E5"].AddComment().Visible = true;
[VisualBasic]
book.Worksheets(1).Range("E5").AddComment().Visible = True
[C++]
book->Worksheets->Item[1]->Range->Item[S"E5"]->AddComment()->Visible = true;

See Also

IComment Interface | NativeExcel Namespace