[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.IRange.Merge

Merge Method

Merge(bool, bool, bool)

Creates a merged cell from the specified IRange object.

Declaration
bool Merge(bool across = false, bool vertical = true, bool replace = false)
Function Merge(Optional across As Boolean = False, Optional vertical As Boolean = True, Optional replace As Boolean = False) As Boolean
Parameters
Type Name Description
bool across

if set to true, merge cells in each row (or column) of the specified range as separate merged cells.

bool vertical

if set to true, cells are merged by rows; otherwise, cells are merged by columns. It has effect only if across is true.

bool replace

if set to true, intersected merged cells will be removed; otherwise, they'll be merged.

Returns
Type Description
bool

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