'Declaration
Public Overloads Function Add( _ ByVal startingRowId As Integer, _ ByVal startingColumnId As Integer, _ ByVal endingRowId As Integer, _ ByVal endingColumnId As Integer, _ Optional ByVal isCenter As Boolean, _ Optional ByVal isMergeAcross As Boolean _ ) As CellRange
'Usage
Dim instance As MergedCellCollection Dim startingRowId As Integer Dim startingColumnId As Integer Dim endingRowId As Integer Dim endingColumnId As Integer Dim isCenter As Boolean Dim isMergeAcross As Boolean Dim value As CellRange value = instance.Add(startingRowId, startingColumnId, endingRowId, endingColumnId, isCenter, isMergeAcross)
public CellRange Add( int startingRowId, int startingColumnId, int endingRowId, int endingColumnId, bool isCenter, bool isMergeAcross )
Parameters
- startingRowId
- Base 0 index that represents the topmost Row of the CellRange to add to the collection.
- startingColumnId
- Base 0 index that represents the leftmost Column of the CellRange to add to the collection.
- endingRowId
- Base 0 index that represents the last Row of the CellRange to add to the collection.
- endingColumnId
- Base 0 index that represents the rightmost Column of the CellRange to add to the collection.
- isCenter
- Centers the text horizontally and vertically. The default value is true.
- isMergeAcross
- Splits the merge per Row. For example, "A1 : B2" will be merged as "A1: B1" and "A2 : B2". The default value is false.