 | WorksheetMergeCells(Address, Address) Method |
Merges the defined cell range
Namespace: NanoXLSXAssembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.4+e304ab0274fa680d1e83f83c8f76c3bd5a54caf2
Syntaxpublic 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
StringReturns the validated range of the merged cells (e.g. 'A1:B12')
ExceptionsException | Condition |
---|
RangeException | Throws 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