Dokumentacja HotXLS

Właściwość LineStyle

Zwraca lub ustawia styl linii obramowania. Odczyt/zapis LongWord

Składnia

property LineStyle: LongWord;

Opis

LineStyle może być jedną z tych stałych XlLineStyle
xlContinuous
xlDash
xlDashDot
xlDashDotDot
xlDot
xlDouble
xlSlantDashDot
xlLineStyleNone

Przykład

Ten przykład dodaje obramowanie wokół zakresu A1:C5

Workbook.Sheets[1].Range['A1', 'C5'].Borders[xlEdgeTop].LineStyle := xlDot;
Workbook.Sheets[1].Range['A1', 'C5'].Borders[xlEdgeRight].LineStyle := xlDot;
Workbook.Sheets[1].Range['A1', 'C5'].Borders[xlEdgeBottom].LineStyle := xlDot;
Workbook.Sheets[1].Range['A1', 'C5'].Borders[xlEdgeLeft].LineStyle := xlDot;
Ten przykład jest taki sam jak poprzedni

Workbook.Sheets[1].Range['A1', 'C5'].Borders.LineStyle := xlDot;