Class
DisplayTextFormatter

Represents a display text formatter that extracts text from objects using a property path.

Definition

Namespace:Telerik.Maui.Controls.AutoComplete

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public sealed class DisplayTextFormatter : IDisplayTextFormatter

Inheritance: objectDisplayTextFormatter

Implements: IDisplayTextFormatter

Constructors

DisplayTextFormatter()

Initializes a new instance of the DisplayTextFormatter class with a default property path.

Declaration

cs-api-definition
public DisplayTextFormatter()

DisplayTextFormatter(string)

Initializes a new instance of the DisplayTextFormatter class with the specified display member path.

Declaration

cs-api-definition
public DisplayTextFormatter(string displayMemberPath)

Parameters

displayMemberPath

string

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

cs-api-definition
public string FormatItem(object item)

Parameters

item

object

The item to format.

Returns

string

A string representation of the item's display text.

Implements IDisplayTextFormatter.FormatItem(object)