HotXLS Docs

AlternatingColor property

Sets the zebra-stripe fill painted on the odd detail rows of a dataset export. Read/write TXLSDataExportColor; the default is xlsDataExportNoColor, which switches the stripe off

Remarks

The stripe is painted on the first, third and later odd detail records across the exported field columns. DetailColor still fills the remaining detail rows, so with both properties set the pair forms a single alternating pattern. Assign xlsDataExportNoColor to switch the stripe off without touching the other colours. The colour follows the same platform rules as the other export colours; see font descriptions and colour aliases

Syntax

property AlternatingColor: TXLSDataExportColor;

Example

This example paints odd detail rows light grey whilst the other rows keep the detail colour

DataToXLS1.AlternatingColor := clSilver;