Click or drag to resize
NanoXLSX

WorksheetMergeCells(Address, Address) Method

Merges the defined cell range

Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.7+c253a7d00ca5e19be14df4552cf12c589ec4ab3e
Syntax
C#
public string MergeCells(
	Address startAddress,
	Address endAddress
)

Parameters

startAddress  Address
Start address of the merged cell range
endAddress  Address
End address of the merged cell range

Return Value

String
Returns the validated range of the merged cells (e.g. 'A1:B12')
Exceptions
ExceptionCondition
RangeExceptionThrows a RangeException if one of the passed cell addresses is out of range or if one or more cell addresses are already occupied in another merge range
See Also