Skip to main content
A newer version of this page is available. .

IXlMergedCells.IndexOf(XlCellRange) Method

Returns the index of the specified merged cell in the collection.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v20.2.Core.dll

NuGet Packages: DevExpress.Printing.Core, DevExpress.WindowsDesktop.Printing.Core

Declaration

int IndexOf(
    XlCellRange range
)

Parameters

Name Type Description
range XlCellRange

A XlCellRange object associated with the merged cell to locate in the collection.

Returns

Type Description
Int32

A zero-based integer which specifies the merged cell’s position within the collection. -1 if the specified cell range doesn’t belong to the collection of merged cells.

See Also