HotXLS Docs

PatternColorIndex proprietà

Returns o sets the color of the interior pattern as an index into the current color palette, o as one of the following XlColorIndex constants: xlColorIndexAutomatic o xlColorIndexNone. Read/write LongWord

Syntax

proprietà PatternColorIndex: LongWord;

Remarks

Imposta this proprietà to xlColorIndexAutomatic to specify the automatic pattern for cells. Imposta this proprietà to xlColorIndexNone to specify that you don't want a pattern (this is the same as setting the Pattern proprietà of the Interior object to xlPatternNone)
La figura seguente mostra i valori dell'indice di colore nella palette di colori predefinita

Example

Questo esempio imposta il colore del motivo interno per l'intervallo A1:C10 sul foglio uno

Workbook.Worksheets[1].Range['A1', 'C10'].Interior.Pattern := xlChecker;
Workbook.Worksheets[1].Range['A1', 'C10'].Interior.PatternColorIndex := 8;