Table of Contents

Delegate AutoCompleteFilterPredicate<T>

Namespace
Avalonia.Controls
Assembly
Avalonia.Controls.dll

Represents the filter used by the AutoCompleteBox control to determine whether an item is a possible match for the specified text.

public delegate bool AutoCompleteFilterPredicate<T>(string? search, T item)

Parameters

search string

The string used as the basis for filtering.

item T

The item that is compared with the search parameter.

Returns

bool

true to indicate item is a possible match for search; otherwise false.

Type Parameters

T

The type used for filtering the AutoCompleteBox. This type can be either a string or an object.

Constructors

AutoCompleteFilterPredicate(object, nint)

public AutoCompleteFilterPredicate(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(string?, T, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(string? search, T item, AsyncCallback callback, object @object)

Parameters

search string
item T
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual bool EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

bool

Invoke(string?, T)

public virtual bool Invoke(string? search, T item)

Parameters

search string
item T

Returns

bool