HotXLS-Dokumentation

LineStyle-Eigenschaft

Gibt den Linienstil des Rahmens zurück oder legt diesen fest. Lesen/Schreiben LongWord

Syntax

property LineStyle: LongWord;

Beschreibung

LineStyle kann einer dieser XlLineStyle-Konstanten entsprechen
xlContinuous
xlDash
xlDashDot
xlDashDotDot
xlDot
xlDouble
xlSlantDashDot
xlLineStyleNone

Beispiel

Dieses Beispiel fügt dem Bereich A1:C5 einen Rahmen hinzu

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;
Dieses Beispiel ist identisch mit dem vorherigen

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