Interface IDisplayTextFormatter
Interface used by RadAutoComplete for providing custom formatting for the selected item that will either be visualized as plain text or as token.
Namespace: Telerik.Maui.Controls.AutoComplete
Assembly: Telerik.Maui.Controls.dll
Syntax
public interface IDisplayTextFormatter
Methods
FormatItem(Object)
Called by RadAutoComplete when suggestion is selected. Using it the format of the text visualized in the entry could be formatted when AutoCompleteDisplayMode is Plain. If the AutoCompleteDisplayMode is Token you can format the text visualized in the Token itself.
Declaration
string FormatItem(object item)
Parameters
System.Object
item
The selected suggestion. |
Returns
System.String
The text that will be visualized in the entry if the AutoCompleteDisplayMode is Plain and if the mode is Token this will be text visualized in it. |