HotXLS Docs

TXLSXConditionalFormats class

Unit: lxHandleX
Conditional-formatting rule collection exposed by TXLSXWorksheet.ConditionalFormats; supports cell, visual (data bar / color scale / icon set), text, ranking and average rules

Description

Conditional-formatting rule collection exposed by TXLSXWorksheet.ConditionalFormats; supports cell, visual (data bar / color scale / icon set), text, ranking and average rules The class is part of the XLSX facade (lxHandleX) and is reached through the owning workbook or worksheet; instances are not normally created directly by application code

Saving individual icon overrides

Use SetIconOverride on an icon-set rule to replace individual icon positions; ordinary XLSX file and stream saves retain the effective family and icon index at every position, including untouched positions between overrides
The saved custom icon list is positional, so a rule with any override includes equivalent base-family icons for its other positions; a rule without overrides keeps its ordinary compact representation
Reopening an explicitly written base-family icon can make HasIconOverride true even though its effective icon is unchanged; compare the effective family and index when checking persisted appearance
The public negative position remains a no-op; this correction does not add a signed negative icon-ID or native NoIcons representation

Properties

Count
Items

Methods

function Add
function AddDataBar
function AddColorScale2
function AddColorScale3
function AddIconSet
function AddExpression
function AddTextRule
function AddTop10
function AddAboveAverage
function AddSimpleRule
function IndexOfCell
function FindAt
function DeleteAt
function DeleteInRange
procedure Delete
function AddExisting
procedure Clear

See also