Documentazione HotXLS

GridlineColorIndex proprietà

Gets o sets the classic XLS color index used for displayed worksheet gridlines. Read/write Integer

Sintassi

proprietà GridlineColorIndex: Integer;

Descrizione

The value is saved in the worksheet Window2 icvHdr campo. Il valore predefinito è 64, che indica a Excel di usare il colore di primo piano predefinito della finestra. Quando viene salvato un indice personalizzato, HotXLS cancella il Window2 fDefaultHdr flag so Excel uses the stored color. This proprietà controls only the displayed gridline color; use DisplayGridLines to show o hide gridlines e PageSetup.PrintGridlines to control printed gridlines

Esempio

This example sets the displayed gridline color index in the first sheet

Workbook.Sheets[1].GridlineColorIndex := 23;