Skip to main content
Table of Contents

TTMSFNCDataGridConditionalFormatting.AddAverageRule Method

Adds a grtAverage rule that compares a column's values against the scope's mean.

API unit family: TMSFNCDataGridConditionalFormatting Declaring type: TTMSFNCDataGridConditionalFormatting

Syntax

FMX.TMSFNCDataGridConditionalFormatting.hppPascalC++
function AddAverageRule(AColumn: Integer; AKind: TTMSFNCDataGridAverageKind): TTMSFNCDataGridFormatRuleItem;
TTMSFNCDataGridFormatRuleItem* __fastcall AddAverageRule(int AColumn, TTMSFNCDataGridAverageKind AKind);

Remarks

The mean is computed over the numeric cells in the column's visible rows and recomputed when the data, sort or filter changes. The rule has no appearance yet; chain TTMSFNCDataGridFormatRuleItem.Highlight.

Parameters

Name Description
AColumn Zero-based column index the rule applies to.
AKind How the value is compared against the mean.

Returns

The newly added rule, owned by the collection.