TTMSFNCCustomDataGrid.CanMergeCells Method
Checks whether a rectangular range can be merged.
API unit family: TMSFNCDataGrid
Declaring type: TTMSFNCCustomDataGrid
Syntax
function CanMergeCells(AColumn, ARow, AColumnCount, ARowCount: Integer): Boolean;
bool __fastcall CanMergeCells(int AColumn, int ARow, int AColumnCount, int ARowCount);
Remarks
Existing merges inside the range do not block merging: MergeCells can overwrite and extend them.
Parameters
| Name | Description |
|---|---|
AColumn |
Zero-based starting column of the range. |
ARow |
Zero-based starting row of the range. |
AColumnCount |
Number of columns to include in the merge. |
ARowCount |
Number of rows to include in the merge. |
Returns
True when every cell of the range is valid and all cells belong to the same area (normal, fixed, fixed root or freeze root); False otherwise.