Table of Contents

TTMSFNCDataGridConditionalFormatting.AddTopBottomRule Method

Adds a grtTopBottom rule that matches the top or bottom N values of a column.

API unit family: TMSFNCDataGridConditionalFormatting Declaring type: TTMSFNCDataGridConditionalFormatting

Syntax

function AddTopBottomRule(AColumn: Integer; AKind: TTMSFNCDataGridRankKind; ACount: Integer): TTMSFNCDataGridFormatRuleItem;

Parameters

Name Description
AColumn Zero-based column index the rule applies to.
AKind Whether to match the highest or lowest values.
ACount The number of values to match.

Returns

The newly added rule.