Table of Contents

TTMSFNCDataGridConditionalFormatting.AddDataBar Method

Adds a grtDataBar rule that paints a proportional in-cell bar over a column's values.

API unit family: TMSFNCDataGridConditionalFormatting Declaring type: TTMSFNCDataGridConditionalFormatting

Syntax

function AddDataBar(AColumn: Integer; AColor: TTMSFNCGraphicsColor): TTMSFNCDataGridFormatRuleItem;

Parameters

Name Description
AColumn Zero-based column index the rule applies to.
AColor The fill colour used for the bar.

Returns

The newly added rule.