Click or drag to resize

AutoFiltersCollection AddFilter Method (Int32, String)

Adds a filter for a filter column.

Namespace: Spire.Xls.Collections
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public void AddFilter(
	int columnIndex,
	string criteria
)

Parameters

columnIndex
Type: System Int32
The column field on which you want to base the filter . for exapmle: sheet.AutoFilters[0]
criteria
Type: System String
The specified criteria (a string; for example, "hello"). It only can be null or be one of the cells' value in this column.
See Also