FlexGrid for WinForms
Add(Int32,Int32,Int32,Int32,Boolean) Method



Top row in the range.
Left column in the range.
Bottom row in the range.
Right column in the range.
Whether to remove overlapping ranges from the collection before adding the new range.
Adds a new CellRange object to the collection, optionally removing other overlapping ranges from the collection.
Syntax
'Declaration
 
Public Overloads Function Add( _
   ByVal topRow As Integer, _
   ByVal leftCol As Integer, _
   ByVal bottomRow As Integer, _
   ByVal rightCol As Integer, _
   ByVal clearOverlappingRanges 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)

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.
Requirements

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

See Also

Reference

CellRangeCollection Class
CellRangeCollection Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback