Returns or sets the line style for the borders. Read/write XlLineStyle.
[Visual Basic] Property LineStyle As XlLineStyle [C#] XlLineStyle LineStyle { get; set; } [C++] __property XlLineStyle get_LineStyle(); __property void set_LineStyle(XlLineStyle ); [JScript] function get LineStyle() : XlLineStyle function set LineStyle(XlLineStyle);
This example puts a borders for the A1:C5 range.
[C#]
IBorders borders = book.Worksheets[1].Range["A1:C5"].Borders;
borders.LineStyle = XlLineStyle.xlDot;
[Visual Basic]
Dim borders As IBorders = book.Worksheets(1).Range("A1:C5").Borders
borders.LineStyle = XlLineStyle.xlDot
[C++]
IBorders* borders = book->Worksheets->Item[1]->Range->Item[S"A1:C5"]->Borders;
borders->LineStyle = XlLineStyle::xlDot;
IBorders Interface | NativeExcel Namespace | XlLineStyle Enumeration | IRange.Borders Property | IBorders Interface