ClassTopFilter
Filter that displays only the top or bottom N items or percentage of items by numeric value in a column.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model.Filtering
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class TopFilter : CellValuesFilterBase, IFilter
Inheritance: objectFilterBase<ICellValue>CellValuesFilterBaseTopFilter
Implements:
Inherited Members
Constructors
TopFilter(int)
Initializes a new top filter showing the top 10 numeric values by default.
Declaration
public TopFilter(int relativeColumnIndex)
Parameters
relativeColumnIndex
The relative index of the column.
TopFilter(int, TopFilterType, double)
Initializes a new top filter with the specified filter type and count or percentage threshold.
Declaration
public TopFilter(int relativeColumnIndex, TopFilterType topFilterType, double value)
Parameters
relativeColumnIndex
The relative index of the column.
topFilterType
Type of the top filter.
value
Gets the value which indicates how many or what percent of the items covered by the filter should be shown.
Properties
TopFilterType
Filter type controlling whether to show top or bottom items by count or percentage.
Declaration
public TopFilterType TopFilterType { get; }
Property Value
The type of the top filter.
Methods
GetHashCode()
Serves as a hash function for a particular type.
ShouldShowValue(object)
Evaluates whether the numeric value ranks within the configured top or bottom threshold.