Class
AutoFilter

Manages column-based filtering for a worksheet range, hiding or showing rows based on applied filter criteria.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model.Filtering

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public class AutoFilter

Inheritance: objectAutoFilter

Properties

FilterRange

Gets or sets the range to which filtering is applied, including the header row with column names.

Declaration

cs-api-definition
public CellRange FilterRange { get; set; }

Property Value

CellRange

The range of the filter.

Methods

ClearFilters()

Removes all filters from all columns and unhides all filtered rows.

Declaration

cs-api-definition
public void ClearFilters()

GetFilter(int)

Retrieves the filter applied to the specified column, or null if no filter exists on that column.

Declaration

cs-api-definition
public IFilter GetFilter(int relativeColumnIndex)

Parameters

relativeColumnIndex

int

The column index relative to the filter range.

Returns

IFilter

The filter applied to the column, or null if the column is not filtered.

ReapplyFilter(IFilter)

Reapplies the specified filter to re-evaluate row visibility based on current cell values.

Declaration

cs-api-definition
public void ReapplyFilter(IFilter filter)

Parameters

filter

IFilter

The filter.

ReapplyFilter(int)

Reapplies the filter on the specified column to re-evaluate row visibility based on current cell values.

Declaration

cs-api-definition
public void ReapplyFilter(int relativeColumnIndex)

Parameters

relativeColumnIndex

int

The column index relative to the filter range.

RemoveFilter(IFilter)

Removes the specified filter and unhides rows that were hidden solely by that filter.

Declaration

cs-api-definition
public bool RemoveFilter(IFilter filter)

Parameters

filter

IFilter

The filter.

Returns

bool

A value indicating whether the filter was successfully found and removed.

RemoveFilter(int)

Removes the filter from the specified column and unhides rows that were hidden solely by that filter.

Declaration

cs-api-definition
public bool RemoveFilter(int relativeColumnIndex)

Parameters

relativeColumnIndex

int

The column index relative to the filter range.

Returns

bool

A value indicating whether the filter was successfully found and removed.

SetFilter(IFilter)

Applies the specified filter to its target column, replacing any existing filter on that column.

Declaration

cs-api-definition
public void SetFilter(IFilter filter)

Parameters

filter

IFilter

The filter.

SetFilters(IEnumerable<IFilter>)

Applies multiple filters to the filtered range in a single operation.

Declaration

cs-api-definition
public void SetFilters(IEnumerable<IFilter> filters)

Parameters

filters

IEnumerable<IFilter>

The filters.