NativeExcel for .Net Developer's Reference

IComment.Visible Property

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

[Visual Basic]
Property Visible As Boolean
[C#]
bool Visible { get; set; }
[C++]
__property bool get_Visible();
__property void set_Visible(bool );
[JScript]
function get Visible() : bool
function set Visible(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;
[Visual Basic]
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