Skip to main content
Table of Contents

TTMSFNCDataGridCellMergeInfo Record

Merge geometry of a cell that is part of a merged range of columns and/or rows.

API unit family: TMSFNCDataGridCell

Syntax

GeneratedPascalC++
TTMSFNCDataGridCellMergeInfo = record
struct DECLSPEC_DRECORD TTMSFNCDataGridCellMergeInfo

Remarks

Every cell inside a merged range stores its own record: the offsets give its distance from the top-left anchor cell and the spans give the size of the whole range. For example, in a 3 x 2 range the cell in the second column of the second row stores ColumnOffset = 1, RowOffset = 1, ColumnSpan = 3, RowSpan = 2.

An unmerged cell holds the value returned by DefaultMergeInfo (offsets -1, spans 0), which TTMSFNCDataGridCellItemExtended.HasMergeInfo reports as not merged. Merge ranges with TTMSFNCCustomDataGrid.MergeCells and split them with TTMSFNCCustomDataGrid.SplitCell rather than writing the record by hand.

Fields and properties

Name Type Description
ColumnOffset Integer Column distance from this cell back to the top-left anchor of the merged region; 0 when this cell is the anchor, -1 when the cell is not merged.
ColumnSpan Integer Total number of columns covered by the merged region; 1 means the region does not extend horizontally, 0 means the cell is not merged.
RowOffset Integer Row distance from this cell back to the top-left anchor of the merged region; 0 when this cell is the anchor, -1 when the cell is not merged.
RowSpan Integer Total number of rows covered by the merged region; 1 means the region does not extend vertically, 0 means the cell is not merged.

Used by