DataFilterCollection.Add(String, String, DataFilterCondition, Object) Method
Appends a new DataFilter object with the specified column name and data type name, condition and filter value.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v19.1.dll
Declaration
public int Add(
string columnName,
string dataTypeName,
DataFilterCondition condition,
object val
)
Parameters
Name | Type | Description |
---|---|---|
columnName | String | A String which specifies the name of the data column whose values are to be filtered according to the data filter condition. This value is assigned to the DataFilter.ColumnName property. |
dataTypeName | String | A String which specifies the type name of the data stored in the columnName data column. This value is assigned to the DataFilter.DataType property. |
condition | DataFilterCondition | A DataFilterCondition enumeration value which specifies the condition used for data filtering. This value is assigned to the DataFilter.Condition property. |
val | Object | An Object which specifies the value which will be used for data filtering. Note that the type of the filtering value should correspond to the type specified via the dataTypeName parameter. This value is assigned to the DataFilter.Value property. |
Returns
Type | Description |
---|---|
Int32 | An integer value indicating the position into which the new element was inserted. |
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Add(String, String, DataFilterCondition, Object) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.