[]
        
(Showing Draft Content)

C1.Win.FlexGrid.CellRangeCollection.Add

Add Method

Add(int, int, int, int)

Adds a new CellRange object to the collection.

Declaration
public int Add(int topRow, int leftCol, int bottomRow, int rightCol)
Public Function Add(topRow As Integer, leftCol As Integer, bottomRow As Integer, rightCol As Integer) As Integer
Parameters
Type Name Description
int topRow

Top row in the range.

int leftCol

Left column in the range.

int bottomRow

Bottom row in the range.

int rightCol

Right column in the range.

Returns
Type Description
int

The index of the object in the collection.

Add(CellRange)

Adds a new CellRange object to the collection.

Declaration
public int Add(CellRange value)
Public Function Add(value As CellRange) As Integer
Parameters
Type Name Description
CellRange value

Object to add to the collection.

Returns
Type Description
int

The index of the object in the collection.

Add(int, int, int, int, bool)

Adds a new CellRange object to the collection, optionally removing other overlapping ranges from the collection.

Declaration
public int Add(int topRow, int leftCol, int bottomRow, int rightCol, bool clearOverlappingRanges)
Public Function Add(topRow As Integer, leftCol As Integer, bottomRow As Integer, rightCol As Integer, clearOverlappingRanges As Boolean) As Integer
Parameters
Type Name Description
int topRow

Top row in the range.

int leftCol

Left column in the range.

int bottomRow

Bottom row in the range.

int rightCol

Right column in the range.

bool clearOverlappingRanges

Whether to remove overlapping ranges from the collection before adding the new range.

Returns
Type Description
int

The index of the object in the collection.

Add(CellRange, bool)

Adds a new CellRange object to the collection, optionally removing other overlapping ranges from the collection.

Declaration
public int Add(CellRange value, bool clearOverlappingRanges)
Public Function Add(value As CellRange, clearOverlappingRanges As Boolean) As Integer
Parameters
Type Name Description
CellRange value

Object to add to the collection.

bool clearOverlappingRanges

Whether to remove overlapping ranges from the collection before adding the new range.

Returns
Type Description
int

The index of the object in the collection.