Skip to main content
A newer version of this page is available. .

TcxFilterValueList.FindItemByKind(TcxFilterValueItemKind,Variant) Method

Returns the index of the first filter item with the specified type and value.

Declaration

function FindItemByKind(AKind: TcxFilterValueItemKind; const AValue: Variant): Integer; overload;

Parameters

Name Type Description
AKind TcxFilterValueItemKind

The target filter item type.

AValue Variant

The target filter item’s value. If you pass Null as the AValue parameter, the function works identically to the FindItemByKind(TcxFilterValueItemKind) function.

Returns

Type Description
Integer

The index of the first filter item with the specified type and value. The function returns -1 if the list has no such filter items.

Remarks

Call the FindItemByKind function to search filter items of the fviUser, fviUserEx, fviValue, and fviSpecial types. To search fviValue filter items, call the FindItemByValue function.

See Also