Contents
- Index
- Previous
- Next
MergeRect method
Applies to
TProfGrid component
Declaration
function MergeRect(const ARect: TGridRect; MergeDataByRow: Boolean = True; const ColSeparator: WideString = ''; const RowSeparator: WideString = ''): Boolean;
Description
Merges a rectangular area specified by the ARect parameter into a single merged cell.
The optional MergeDataByRow parameter specifies the order in which any existing data in grid cells will be merged into single combined string. If the parameter is True, the order is left-to-right, row-by-row. If the parameter is False, the order is top-to-bottom, column-by-column.
The optional ColSeparator and RowSeparator parameters specify the separator string between any existing text in columns and rows accordingly.
Tips:
1. In Delphi, and in C++Builder 6, the last three parameters have the default values of (True, '', '') and may be omitted.
2. To unmerge a merged cell, use the Split method of TProfGridCell class.