'Declaration
Public Overloads Function Add( _ ByVal startingCellAddress As String, _ ByVal endingCellAddress As String, _ Optional ByVal isCenter As Boolean, _ Optional ByVal isMergeAcross As Boolean _ ) As CellRange
'Usage
Dim instance As MergedCellCollection Dim startingCellAddress As String Dim endingCellAddress As String Dim isCenter As Boolean Dim isMergeAcross As Boolean Dim value As CellRange value = instance.Add(startingCellAddress, endingCellAddress, isCenter, isMergeAcross)
public CellRange Add( string startingCellAddress, string endingCellAddress, bool isCenter, bool isMergeAcross )
Parameters
- startingCellAddress
- The Address of the Cell corresponding to top left corner of the CellRange that will be added to the MergedCellCollection.
- endingCellAddress
- The Address of the Cell corresponding to the bottom right corner of the CellRange that will be added to the MergedCellCollection.
- isCenter
Centers the text horizontally & 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.