NativeExcel suite v2.x

Color property

Returns or sets the cell shading color of the range. Use the RGB function to create a color value. Read/write LongWord.

Syntax

property Color: LongWord;

Example

This example sets the color of the range A1:C10 interior to red.
Workbook.Worksheets[1].Range['A1', 'C10'].Interior.Color := xlRed;
Copyright © NikaSoft 2004-2012