WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CustomFilters

    Show / Hide Table of Contents

    Class CustomFilters

    Holds the expression filters and defines the operations that can be performed on these filters.

    Inheritance
    System.Object
    CustomFilters
    Implements
    System.Collections.IEnumerator
    System.Collections.IEnumerable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.GridHelperClasses
    Assembly: Syncfusion.GridHelperClasses.Windows.dll
    Syntax
    public class CustomFilters : IEnumerator, IEnumerable

    Constructors

    CustomFilters()

    Initializes a new instance of the CustomFilters class.

    Declaration
    public CustomFilters()

    Properties

    Count

    Gets the number of filters.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    System.Int32

    Current

    Gets the current filter.

    Declaration
    public object Current { get; }
    Property Value
    Type Description
    System.Object

    Methods

    Add(String, String)

    Add a filter expression to the CompareOperaatorList.

    Declaration
    public void Add(string name, string expression)
    Parameters
    Type Name Description
    System.String name

    Name of the filter expression.

    System.String expression

    A formula expression with {VALUE} token.

    Add(String, String, Bitmap)

    Add a filter expression to the CompareOperaatorList.

    Declaration
    public void Add(string name, string expression, Bitmap img)
    Parameters
    Type Name Description
    System.String name

    Name of the filter expression.

    System.String expression

    A formula expression with {VALUE} token.

    System.Drawing.Bitmap img

    Bitmap to display in the button for this filter expression.

    Contains(String)

    Determines whether the list contains the given filter.

    Declaration
    public bool Contains(string name)
    Parameters
    Type Name Description
    System.String name

    Name of the filter expression.

    Returns
    Type Description
    System.Boolean

    True if it contains; False otherwise.

    GetEnumerator()

    Returns the enumerator for the current object..

    Declaration
    public IEnumerator GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    Enumerator for the current object.

    GetExpression(String)

    Returns the filter expression given its name.

    Declaration
    public string GetExpression(string key)
    Parameters
    Type Name Description
    System.String key

    Filter expression name.

    Returns
    Type Description
    System.String

    Filter expression.

    GetImage(String)

    Gets the image for specified key value.

    Declaration
    public Bitmap GetImage(string key)
    Parameters
    Type Name Description
    System.String key

    Filter expression name.

    Returns
    Type Description
    System.Drawing.Bitmap

    Bitmap image.

    MoveNext()

    Navigates to the next filter in the list.

    Declaration
    public bool MoveNext()
    Returns
    Type Description
    System.Boolean

    True if the operation is successful; False otherwise.

    Reset()

    Resets the navigation key.

    Declaration
    public void Reset()

    Implements

    System.Collections.IEnumerator
    System.Collections.IEnumerable

    Extension Methods

    EnumerableExtensions.GetElementType(IEnumerable)
    EnumerableExtensions.GetItemPropertyInfo(IEnumerable)
    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)
    QueryableExtensions.OfQueryable(IEnumerable)
    QueryableExtensions.OfQueryable(IEnumerable, Type)
    QueryableExtensions.GroupByMany<TElement>(IEnumerable, Type, List<Func<TElement, Object>>)
    QueryableExtensions.GroupByMany(IEnumerable, Type, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Dictionary<String, IComparer<Object>>, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Func<String, Expression>, String[])
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved