public WorksheetMergedCellsRegion Add( int firstRow, int firstColumn, int lastRow, int lastColumn )
Exception | Description |
---|---|
System.InvalidOperationException | firstRow is greater than lastRow or firstColumn is greater than lastColumn. |
System.ArgumentOutOfRangeException | Any row or column indices specified are outside the valid row or column ranges. |
System.InvalidOperationException | The new merged cell region overlaps with an existing merged cell region. |
The new merged cell region will take its value from the first cell containing a value, starting at the top-left and going across then down in the region. The value of all other cells will be lost. Similarly, the new region will initialize its cell format from the first cell containing a non-default cell format.
Target Platforms: Android 4.4+, iOS 8+
Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+