GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / IRange Interface / Merge Method
if set to true, merge cells in each row (or column) of the specified range as separate merged cells.
if set to true, cells are merged by rows; otherwise, cells are merged by columns. It has effect only if across is true.
if set to true, intersected merged cells will be removed; otherwise, they'll be merged.


In This Topic
Merge Method (IRange)
In This Topic
Creates a merged cell from the specified IRange object.
Syntax
'Declaration
 
Function Merge( _
   Optional ByVal across As Boolean, _
   Optional ByVal vertical As Boolean, _
   Optional ByVal replace As Boolean _
) As Boolean
 
'Usage
 
Dim instance As IRange
Dim across As Boolean
Dim vertical As Boolean
Dim replace As Boolean
Dim value As Boolean
 
value = instance.Merge(across, vertical, replace)

Parameters

across
if set to true, merge cells in each row (or column) of the specified range as separate merged cells.
vertical
if set to true, cells are merged by rows; otherwise, cells are merged by columns. It has effect only if across is true.
replace
if set to true, intersected merged cells will be removed; otherwise, they'll be merged.

Return Value

true if the cell range is merged; otherwise, false.
See Also