Skip to main content
Table of Contents

TTMSFNCDataGridFormatRuleItem.ForCellRange Method

Scopes this rule to a rectangular cell range.

API unit family: TMSFNCDataGridConditionalFormatting Declaring type: TTMSFNCDataGridFormatRuleItem

Syntax

FMX.TMSFNCDataGridConditionalFormatting.hppPascalC++
function ForCellRange(AStartColumn, AStartRow, AEndColumn, AEndRow: Integer): TTMSFNCDataGridFormatRuleItem;
TTMSFNCDataGridFormatRuleItem* __fastcall ForCellRange(int AStartColumn, int AStartRow, int AEndColumn, int AEndRow);

Remarks

Sets Scope to grsCellRange, assigns the four CellRange* corner properties (negative values are clamped to 0), and clears ApplyToEntireRow. The corners may be given in either order.

Parameters

Name Description
AStartColumn The zero-based column of the range's top-left cell.
AStartRow The zero-based row of the range's top-left cell.
AEndColumn The zero-based column of the range's bottom-right cell.
AEndRow The zero-based row of the range's bottom-right cell.

Returns

This rule, so further configuration calls can be chained.