Adds a new
CellRange object to the collection, optionally removing other overlapping ranges from the collection.
'Declaration
Public Overloads Function Add( _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Boolean _
) As Integer
'Usage
Dim instance As CellRangeCollection
Dim topRow As Integer
Dim leftCol As Integer
Dim bottomRow As Integer
Dim rightCol As Integer
Dim clearOverlappingRanges As Boolean
Dim value As Integer
value = instance.Add(topRow, leftCol, bottomRow, rightCol, clearOverlappingRanges)
public int Add(
int ,
int ,
int ,
int ,
bool
)
public:
int Add(
int ,
int ,
int ,
int ,
bool
)
Parameters
- topRow
- Top row in the range.
- leftCol
- Left column in the range.
- bottomRow
- Bottom row in the range.
- rightCol
- Right column in the range.
- clearOverlappingRanges
- Whether to remove overlapping ranges from the collection before adding the new range.
Return Value
The index of the object in the collection.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2