Class CustomFilters
Holds the expression filters and defines the operations that can be performed on these filters.
Inheritance
Implements
Inherited Members
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 |
---|
System.Int32 |
Current
Gets the current filter.
Declaration
public object Current { get; }
Property Value
Type |
---|
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()