TcxFilterCriteria.AddItem(TcxFilterCriteriaItemList,TObject,TcxFilterOperatorKind,Variant,string) Method
In This Article
Adds a new simple filter condition to the specified filter condition list.
#Declaration
Delphi
function AddItem(AParent: TcxFilterCriteriaItemList; AItemLink: TObject; AOperatorKind: TcxFilterOperatorKind; const AValue: Variant; const ADisplayValue: string): TcxFilterCriteriaItem; overload; virtual;
#Parameters
Name | Type |
---|---|
AParent | Tcx |
AItem |
TObject |
AOperator |
Tcx |
AValue | Variant |
ADisplay |
string |
#Returns
Type |
---|
Tcx |
#Remarks
This function adds a new simple filter condition to the list specified by the AParent parameter. If AParent is NIL, a new filter condition is inserted in the root list provided by the Root property. AItemLink defines the item for which the condition is applied.
The AddItem function returns a TcxFilterCriteriaItem object representing a simple condition. The AOperatorkind, AValue, and ADisplayValue parameters are used to initialize the OperatorKind, Value, and DisplayValue properties of the created object, respectively.
See Also