Delegate AutoCompleteFilterPredicate<T>
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
stringThe string used as the basis for filtering.
item
TThe item that is compared with the
search
parameter.
Returns
- bool
true to indicate
item
is a possible match forsearch
; 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
Methods
BeginInvoke(string?, T, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(string? search, T item, AsyncCallback callback, object @object)
Parameters
search
stringitem
Tcallback
AsyncCallbackobject
object
Returns
EndInvoke(IAsyncResult)
public virtual bool EndInvoke(IAsyncResult result)
Parameters
result
IAsyncResult
Returns
Invoke(string?, T)
public virtual bool Invoke(string? search, T item)
Parameters
search
stringitem
T