Class DisplayTextFormatter
Represents a display text formatter that extracts text from objects using a property path.
Inheritance
Namespace: Telerik.Maui.Controls.AutoComplete
Assembly: Telerik.Maui.Controls.dll
Syntax
public sealed class DisplayTextFormatter : Object, IDisplayTextFormatter
Constructors
DisplayTextFormatter()
Initializes a new instance of the DisplayTextFormatter class with a default property path.
Declaration
public DisplayTextFormatter()
DisplayTextFormatter(String)
Initializes a new instance of the DisplayTextFormatter class with the specified display member path.
Declaration
public DisplayTextFormatter(string displayMemberPath)
Parameters
System.String
displayMemberPath
The property path used to extract display text from objects. |
Methods
FormatItem(Object)
Formats the specified item by extracting its display text using the configured property path.
Declaration
public string FormatItem(object item)
Parameters
System.Object
item
The item to format. |
Returns
System.String
A System.String representation of the item's display text. |