HotXLS 文档

Weight 属性

Returns or sets the weight of the border. 读/写 LongWord

语法

property Weight: LongWord;

说明

Weight can be one of these XlBorderWeight constants
xlHairline
xlThin
xlMedium
xlThick

示例

本示例 sets the weight of border around the A1:C5 range

Workbook.Sheets[1].Range['A1', 'C5'].Borders[xlEdgeTop].Weight := xlThin;
Workbook.Sheets[1].Range['A1', 'C5'].Borders[xlEdgeRight].Weight := xlThin;
Workbook.Sheets[1].Range['A1', 'C5'].Borders[xlEdgeBottom].Weight := xlThin;
Workbook.Sheets[1].Range['A1', 'C5'].Borders[xlEdgeLeft].Weight := xlThin;
本示例 is the same to previous

Workbook.Sheets[1].Range['A1', 'C5'].Borders.Weight := xlThin;