AutoFilterAddFilter Method

Adds a filter for a filter column.

Namespace:  Aspose.Cells
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 20.9.0.0 (20.9)
Syntax
public void AddFilter(
	int fieldIndex,
	string criteria
)

Parameters

fieldIndex
Type: SystemInt32
The integer offset of the field on which you want to base the filter (from the left of the list; the leftmost field is field 0).
criteria
Type: SystemString
The specified criteria (a string; for example, "101"). It only can be null or be one of the cells' value in this column.
Remarks
MS Excel 2007 supports multiple selection in a filter column.
See Also