Class FilterBase<T>
Provides a base class for the filter classes.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Model.Filtering
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public abstract class FilterBase<T> : IFilter, ITranslatable, ICopyable<IFilter>
  Type Parameters
| 
        T
         The type of the property definition of the filter.  | 
    
Constructors
FilterBase(Int32)
Initializes a new instance of the FilterBase<T> class.
Declaration
protected FilterBase(int relativeColumnIndex)
  Parameters
| 
        System.Int32
        relativeColumnIndex
         Index of the relative column.  | 
    
Properties
PropertyDefinition
Gets the property definition for the value which will be retrieved by the GetValue method.
Declaration
protected abstract IPropertyDefinition<T> PropertyDefinition { get; }
  Property Value
| 
        IPropertyDefinition<T>
         The property definition.  | 
    
RelativeColumnIndex
Gets the index of the column to which the filter is applied. The index is relative to the beginning of the filter range.
Declaration
public int RelativeColumnIndex { get; }
  Property Value
| 
        System.Int32
         The relative index of the column.  | 
    
Implements
Methods
GetValue(Cells, Int32, Int32)
Gets the value of the cell at the specified index. This value is used to determine whether the row will be hidden by the filter.
Declaration
public virtual object GetValue(Cells cells, int rowIndex, int columnIndex)
  Parameters
| 
        Cells
        cells
         The cells of the worksheet.  | 
    
| 
        System.Int32
        rowIndex
         Index of the row.  | 
    
| 
        System.Int32
        columnIndex
         Index of the column.  | 
    
Returns
| 
        System.Object
         The value of the cell.  | 
    
Implements
ShouldShowValue(Object)
Determines whether the row which contains the specified value will be shown.
Declaration
public abstract bool ShouldShowValue(object value)
  Parameters
| 
        System.Object
        value
         The value retrieved by the GetValue method.  | 
    
Returns
| 
        System.Boolean
         A value indicating whether the row which contains the specified value will be shown  |