HotXLS-dokumentation

ColorIndex egenskap

Returnerar or sets the color of the borders. Färgen anges som ett indexvärde i den aktuella färgpaletten eller som en av XlColorIndex-konstanterna. Läs/skriv LongWord

Syntax

property ColorIndex: LongWord;

Beskrivning

ColorIndex can be one of these XlColorIndex constants
xlColorIndexAutomatic Use to specify the automatic border color
xlColorIndexNone Use to specify no border color

Exempel

This example sets the color of the borders of A1:D1 range

Workbook.Sheets[1].Range['A1', 'D1'].Borders.ColorIndex := 5;