HotXLS 文档

LineStyle 属性

Returns or sets the line style for the border. 读/写 LongWord

语法

property LineStyle: LongWord;

说明

LineStyle 可以为以下 XlLineStyle 常量之一
xlContinuous
xlDash
xlDashDot
xlDashDotDot
xlDot
xlDouble
xlSlantDashDot
xlLineStyleNone

示例

本示例 puts a border around the A1:C5 range

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;
本示例 is the same to previous

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