HotXLS-documentatie

Weight eigenschap

Retourneert of sets the weight of the bofder. Read/write LongWofd

Syntaxis

eigenschap Weight: LongWofd;

Beschrijving

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

Voorbeeld

This example sets the weight of bofder 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;
This example is the same to previous

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