Skip to main content

IXlFilterColumns.FindById(Int32) Method

Returns the XlFilterColumn object by its index in the filtered range.

Namespace: DevExpress.Export.Xl

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

NuGet Package: DevExpress.Printing.Core

Declaration

XlFilterColumn FindById(
    int columnId
)

Parameters

Name Type Description
columnId Int32

An integer that is the zero-based index of the required column in the filtered range.

Returns

Type Description
XlFilterColumn

An XlFilterColumn object with the specified index.

Remarks

The FindById method scans the IXlFilterColumns collection and returns the item whose XlFilterColumn.ColumnId property value matches the columnId parameter.

If the column with the specified index is not found, the FindById method returns null (Nothing in Visual Basic).

Use the IXlFilterColumns.Item property to get access to a filtered column by its index in the IXlFilterColumns collection.

See Also