Table of Contents

TTMSFNCDataGridFormatRuleItem.ForColumns Method

Scopes this rule to an inclusive range of columns.

API unit family: TMSFNCDataGridConditionalFormatting Declaring type: TTMSFNCDataGridFormatRuleItem

Syntax

function ForColumns(AFirstColumn, ALastColumn: Integer): TTMSFNCDataGridFormatRuleItem;

Remarks

Sets Scope to grsColumnRange, assigns Column and ColumnTo, and clears ApplyToEntireRow.

Parameters

Name Description
AFirstColumn The zero-based index of the first column in the range.
ALastColumn The zero-based index of the last column in the range.

Returns

This rule, so further configuration calls can be chained.