Skip to main content
Table of Contents

TTMSFNCDataGridConditionalFormatting.GetOverlayInfo Method

Computes the overlay (data bar fraction or icon index) to paint for a cell.

API unit family: TMSFNCDataGridConditionalFormatting Declaring type: TTMSFNCDataGridConditionalFormatting

Syntax

FMX.TMSFNCDataGridConditionalFormatting.hppPascalC++
function GetOverlayInfo(const AProvider: ITMSFNCDataGridFormatProvider; AColumn, ARow: Integer; out AInfo: TTMSFNCDataGridOverlayInfo): Boolean;
bool __fastcall GetOverlayInfo(const _di_ITMSFNCDataGridFormatProvider AProvider, int AColumn, int ARow, /* out */ TTMSFNCDataGridOverlayInfo &AInfo);

Remarks

The renderer calls this when painting a cell overlay and paints using together with the matching rule's TTMSFNCDataGridFormatRuleItem.DataBar / TTMSFNCDataGridFormatRuleItem.IconSet settings. is always initialized, to a zeroed record with Kind = gokNone when the result is False.

A data bar's fractions are computed against the resolved MinKind/MaxKind bounds; an icon index divides the scope's minimum..maximum into IconCountForKind equal bands and then applies Reverse.

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.
AInfo Receives the overlay kind and paint values when the function returns True.

Returns

False when no overlay rule applies to the cell, the cell value is not numeric, or the scope holds no numeric values; otherwise True.