Skip to main content

TcxFilterCriteria.AddItem(TcxFilterCriteriaItemList,TObject,TcxFilterOperatorKind,Variant,string) Method

Adds a new simple filter condition to the specified filter condition list.

Declaration

function AddItem(AParent: TcxFilterCriteriaItemList; AItemLink: TObject; AOperatorKind: TcxFilterOperatorKind; const AValue: Variant; const ADisplayValue: string): TcxFilterCriteriaItem; overload; virtual;

Parameters

Name Type
AParent TcxFilterCriteriaItemList
AItemLink TObject
AOperatorKind TcxFilterOperatorKind
AValue Variant
ADisplayValue string

Returns

Type
TcxFilterCriteriaItem

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