Table of Contents

TTMSFNCDataGridConditionalFormatting.OverlayRuleFor Method

Returns the first matching overlay rule (data bar or icon set) for a cell.

API unit family: TMSFNCDataGridConditionalFormatting Declaring type: TTMSFNCDataGridConditionalFormatting

Syntax

function OverlayRuleFor(const AProvider: ITMSFNCDataGridFormatProvider; AColumn, ARow: Integer): TTMSFNCDataGridFormatRuleItem;

Remarks

Used internally by the renderer when painting overlays; see GetOverlayInfo for the computed overlay values.

Parameters

Name Description
AProvider The grid-data provider used to read cell values and statistics.
AColumn Zero-based column index of the cell being evaluated.
ARow Zero-based row index of the cell being evaluated.

Returns

The matching overlay rule, or nil when no overlay rule matches the cell.