Skip to main content
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

FMX.TMSFNCDataGridConditionalFormatting.hppPascalC++
function AddDataBar(AColumn: Integer; AColor: TTMSFNCGraphicsColor): TTMSFNCDataGridFormatRuleItem;
TTMSFNCDataGridFormatRuleItem* __fastcall AddDataBar(int AColumn, Fmx::Tmsfncgraphicstypes::TTMSFNCGraphicsColor AColor);

Remarks

Only TTMSFNCDataGridDataBarSettings.Fill's colour is set; negative values keep the default red TTMSFNCDataGridDataBarSettings.NegativeFill, and the bounds stay automatic. Configure TTMSFNCDataGridFormatRuleItem.DataBar for the rest.

Parameters

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

Returns

The newly added rule, owned by the collection.