Class FilterDescriptor
Represents a filter descriptor of the form Member-Operator-Value.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Data
Assembly: Telerik.Windows.Data.dll
Syntax
public class FilterDescriptor : OperatorValueFilterDescriptorBase, ISuspendNotifications, IFilterDescriptor, INotifyPropertyChanged
Constructors
FilterDescriptor()
FilterDescriptor(String, FilterOperator, Object)
Initializes a new instance of the FilterDescriptor class.
Declaration
public FilterDescriptor(string member, FilterOperator filterOperator, object filterValue)
Parameters
System.String
member
The member. |
FilterOperator
filterOperator
The filter operator. |
System.Object
filterValue
The filter value. |
FilterDescriptor(String, FilterOperator, Object, Boolean)
Initializes a new instance of the FilterDescriptor class.
Declaration
public FilterDescriptor(string member, FilterOperator filterOperator, object filterValue, bool caseSensitive)
Parameters
System.String
member
The member. |
FilterOperator
filterOperator
The filter operator. |
System.Object
filterValue
The filter value. |
System.Boolean
caseSensitive
If set to |
FilterDescriptor(String, FilterOperator, Object, Boolean, Type)
Initializes a new instance of the FilterDescriptor class.
Declaration
public FilterDescriptor(string member, FilterOperator filterOperator, object filterValue, bool caseSensitive, Type memberType)
Parameters
System.String
member
The member. |
FilterOperator
filterOperator
The filter operator. |
System.Object
filterValue
The filter value. |
System.Boolean
caseSensitive
If set to |
System.Type
memberType
The Type of the member. |
FilterDescriptor(String, FilterOperator, Object, CultureInfo)
Initializes a new instance of the FilterDescriptor class.
Declaration
public FilterDescriptor(string member, FilterOperator filterOperator, object filterValue, CultureInfo cultureInfo)
Parameters
System.String
member
The member. |
FilterOperator
filterOperator
The filter operator. |
System.Object
filterValue
The filter value. |
System.Globalization.CultureInfo
cultureInfo
The culture of the filter descriptor. |
Fields
MemberProperty
Identifies the Member dependency property.
Declaration
public static readonly DependencyProperty MemberProperty
Field Value
System.Windows.DependencyProperty
|
Properties
IsActive
Gets a value indicating whether this filter is active. A filter is considered active if its Value is different from OperatorValueFilterDescriptorBase.UnsetValue.
Declaration
public override bool IsActive { get; }
Property Value
System.Boolean
A value indicating whether this filter is active. |
Overrides
Remarks
A filter is considered active if its Value is different from OperatorValueFilterDescriptorBase.UnsetValue.
Member
Gets or sets the member name which will be used for filtering.
Declaration
public string Member { get; set; }
Property Value
System.String
The member that will be used for filtering. |
MemberType
Gets or sets the type of the member that is used for filtering. Set this property if the member type cannot be resolved automatically. Such cases are: items with ICustomTypeDescriptor, XmlNode or DataRow. Changing this property does not raise PropertyChanged event.
Declaration
public Type MemberType { get; set; }
Property Value
System.Type
The type of the member used for filtering. |
Methods
CreateFilterExpression(ParameterExpression)
Creates a predicate filter expression used for collection filtering.
Declaration
protected override Expression CreateFilterExpression(ParameterExpression parameterExpression)
Parameters
System.Linq.Expressions.ParameterExpression
parameterExpression
The parameter expression, which will be used for filtering. |
Returns
System.Linq.Expressions.Expression
A predicate filter expression. |
Overrides
Remarks
Creates a predicate filter expression.
ToString()
Declaration
public override string ToString()
Returns
System.String
|