TTMSFNCDataGridConditionalFormatting.AddAverageRule Method
Adds a
grtAveragerule that compares a column's values against the scope's mean.
API unit family: TMSFNCDataGridConditionalFormatting
Declaring type: TTMSFNCDataGridConditionalFormatting
Syntax
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.