Table of Contents

Delegate AutoCompleteSelector<T>

Namespace
Avalonia.Controls
Assembly
Avalonia.Controls.dll

Represents the selector used by the AutoCompleteBox control to determine how the specified text should be modified with an item.

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

Parameters

search string

The string used as the basis for filtering.

item T

The selected item that should be combined with the search parameter.

Returns

string

Modified text that will be used by the AutoCompleteBox.

Type Parameters

T

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

Constructors

AutoCompleteSelector(object, nint)

public AutoCompleteSelector(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 string EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

string

Invoke(string?, T)

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

Parameters

search string
item T

Returns

string