[]
        
(Showing Draft Content)

C1.Win.C1FlexGrid.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)
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)
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)
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)
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.