ClassValuesCollectionFilter
Filter that displays rows whose cell values match any value in a predefined list of strings, dates, or blank entries.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model.Filtering
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class ValuesCollectionFilter : CellValuesFilterBase, IFilter
Inheritance: objectFilterBase<ICellValue>CellValuesFilterBaseValuesCollectionFilter
Implements:
Inherited Members
Constructors
ValuesCollectionFilter(int, IEnumerable<DateGroupItem>)
Initializes a values filter matching the specified date group items, excluding blanks.
Declaration
public ValuesCollectionFilter(int relativeColumnIndex, IEnumerable<DateGroupItem> dateValues)
Parameters
relativeColumnIndex
Relative index of the column.
dateValues
The date values.
ValuesCollectionFilter(int, IEnumerable<DateGroupItem>, bool)
Initializes a values filter matching the specified date group items with optional blank inclusion.
Declaration
public ValuesCollectionFilter(int relativeColumnIndex, IEnumerable<DateGroupItem> dateValues, bool blank)
Parameters
relativeColumnIndex
Relative index of the column.
dateValues
The date values.
blank
The value indicating whether the cells containing blank values should be shown by the filter.
ValuesCollectionFilter(int, IEnumerable<string>)
Initializes a values filter matching the specified string values, excluding blanks.
Declaration
public ValuesCollectionFilter(int relativeColumnIndex, IEnumerable<string> stringValues)
Parameters
relativeColumnIndex
Relative index of the column.
stringValues
The string values.
ValuesCollectionFilter(int, IEnumerable<string>, IEnumerable<DateGroupItem>)
Initializes a values filter matching both string and date group items, excluding blanks.
Declaration
public ValuesCollectionFilter(int relativeColumnIndex, IEnumerable<string> stringValues, IEnumerable<DateGroupItem> dateValues)
Parameters
relativeColumnIndex
Relative index of the column.
stringValues
The string values.
dateValues
The date values.
ValuesCollectionFilter(int, IEnumerable<string>, IEnumerable<DateGroupItem>, bool)
Initializes a values filter matching string values, date group items, and optionally blank cells.
Declaration
public ValuesCollectionFilter(int relativeColumnIndex, IEnumerable<string> stringValues, IEnumerable<DateGroupItem> dateValues, bool blank)
Parameters
relativeColumnIndex
Relative index of the column.
stringValues
The string values.
dateValues
The date values.
blank
The value indicating whether the cells containing blank values should be shown by the filter.
ValuesCollectionFilter(int, IEnumerable<string>, bool)
Initializes a values filter matching the specified string values with optional blank inclusion.
Declaration
public ValuesCollectionFilter(int relativeColumnIndex, IEnumerable<string> stringValues, bool blank)
Parameters
relativeColumnIndex
Relative index of the column.
stringValues
The string values.
blank
The value indicating whether the cells containing blank values should be shown by the filter.
Properties
Blank
Whether to include rows with empty or whitespace-only cell values in the filtered results.
Declaration
public bool Blank { get; }
Property Value
The value indicating whether the cells containing blank values should be shown by the filter.
DateItems
Date group items representing hierarchical date/time criteria (year, month, day) for filtering date-formatted cells.
Declaration
public IEnumerable<DateGroupItem> DateItems { get; }
Property Value
The date items.
StringValues
Text values to match against formatted cell content; matching is case-insensitive.
Declaration
public IEnumerable<string> StringValues { get; }
Property Value
The string values.
Methods
GetHashCode()
Serves as a hash function for a particular type.
GetValue(Cells, int, int)
Retrieves the cell value formatted as a string or DateTime based on the cell's number format for filter comparison.
ShouldShowValue(object)
Evaluates whether the value matches any entry in the string list, date groups, or blank criteria.