Gets or sets a value that represents the style of the specified line.
[Visual Basic] Property Style As MsoLineStyle [C#] MsoLineStyle Style { get; set; } [C++] __property MsoLineStyle get_Style(); __property void set_Style(MsoLineStyle ); [JScript] function get Style() : MsoLineStyle function set Style(MsoLineStyle);
One of the MsoLineStyle values.
This example creates new comment on cell B2 with double red border
[C#]
IComment comment = book.Worksheets[1].Range["B2"].AddComment("Comment text");
ILineFormat line = comment.Shape.Line;
line.Style = MsoLineStyle.msoLineThinThin;
line.Weight = 2.25;
line.ForeColor.RGB = Color.FromArgb(0x0000FF);
[Visual Basic]
Dim comment As IComment = book.Worksheets(1).Range("B2").AddComment("Comment text")
Dim line As ILineFormat = comment.Shape.Line
line.Style = MsoLineStyle.msoLineThinThin
line.Weight = 2.25
line.ForeColor.RGB = Color.FromArgb(&H0000FF)
[C++]
IComment* comment = book->Worksheets->Item[1]->Range->Item[S"B2"]->AddComment(S"Comment text");
ILineFormat* line = comment->Shape->Line;
line->Style = MsoLineStyle::msoLineThinThin;
line->Weight = 2.25;
line->ForeColor->RGB = Color::FromArgb(0x0000FF);
ILineFormat Interface | NativeExcel Namespace