New to Telerik Document Processing? Start a free 30-day trial

Represents a Top 10 filter that shows the top or bottom N items or percentages.

Value represents a count when FilterType is TopNumber or BottomNumber, and a percentage when FilterType is TopPercent or BottomPercent. Note that BeginFiltering(SpreadAutoFilter) does not evaluate Top10 filters; the rules are emitted to the output but no rows are hidden based on them.

Definition

Namespace:Telerik.Documents.SpreadsheetStreaming

Assembly:Telerik.Documents.SpreadsheetStreaming.dll

Syntax:

C#
public class SpreadTop10Filter : ISpreadFilter

Inheritance: objectSpreadTop10Filter

Implements: ISpreadFilter

Constructors

Initializes a new instance of the SpreadTop10Filter class.

C#
public SpreadTop10Filter(SpreadTop10FilterType filterType, double value)
Parameters:filterTypeSpreadTop10FilterType

The type of top/bottom filter.

valuedouble

The count or percentage value. Must be a finite number greater than zero.

Exceptions: ArgumentOutOfRangeException

Thrown when value is less than or equal to zero.

ArgumentException

Thrown when value is NaN or Infinity.

See the class-level remarks for streaming-mode limitations regarding Top10 filter evaluation.

Properties

Gets the type of top/bottom filter.

C#
public SpreadTop10FilterType FilterType { get; }

Gets the count or percentage value.

C#
public double Value { get; }