Skip to main content

TcxFilterValueList.Find(Variant,string,Integer) Method

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

Declaration

function Find(const AValue: Variant; const ADisplayText: string; var AIndex: Integer): Boolean; virtual;

Parameters

Name Type Description
AValue Variant

The value of the searched filter item.

ADisplayText string

The display text of the searched filter item. The function takes the ADisplayText parameter value into account only if the SortByDisplayText property is set to True.

AIndex Integer

The index of the first filter item with the specified value and display text. The function returns -1 as the AIndex parameter if the list has no filter items with the specified value and display text.

Returns

Type Description
Boolean

True if the function finds a filter item with the specified value and display text; otherwise, false.

See Also