NativeExcel for .Net Developer's Reference

ILineFormat.Visible Property

Gets or sets a value that indicates whether the line 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 line is visible; otherwise, false.

Example

This example hides the border for the comment on cell B2

[C#]
IComment comment = book.Worksheets[1].Range["B2"].Comment;
if (comment != null) 
{
    comment.Shape.Line.Visible = false;
}
[VisualBasic]
Dim comment As IComment = book.Worksheets(1).Range("B2").Comment
If Not comment Is Nothing Then
   comment.Shape.Line.Visible = False
End If
[C++]
IComment* comment = book->Worksheets->Item[1]->Range->Item[S"B2"]->Comment;
if (comment != null) 
{
    comment->Shape->Line->Visible = false;
}

See Also

ILineFormat Interface | NativeExcel Namespace