Xceed Workbooks for .NET v2.0 Documentation
MergeCells Method


Xceed.Workbooks.NET Assembly > Xceed.Workbooks.NET Namespace > CellRange Class : MergeCells Method
Centers the text horizontally and vertically. The default value is true.
Splits the merge per Row; for example, "A1 : B2" will be merged as "A1: B1" and "A2 : B2". The default value is false.
Adds the CellRange in the MergedCellCollection.
Syntax
'Declaration
 
Public Sub MergeCells( _
   Optional ByVal isCenter As Boolean, _
   Optional ByVal isAcross As Boolean _
) 
'Usage
 
Dim instance As CellRange
Dim isCenter As Boolean
Dim isAcross As Boolean
 
instance.MergeCells(isCenter, isAcross)
public void MergeCells( 
   bool isCenter,
   bool isAcross
)

Parameters

isCenter
Centers the text horizontally and vertically. The default value is true.
isAcross
Splits the merge per Row; for example, "A1 : B2" will be merged as "A1: B1" and "A2 : B2". The default value is false.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CellRange Class
CellRange Members