Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxMapItemTitleOptions.Text Property

Specifies the title’s text.

#Declaration

Delphi
property Text: string read; write;

#Property Value

Type
string

#Remarks

In addition to normal strings, you can include a map item’s attribute values in the title’s text. To accomplish this, add required attribute names and enclose each one with braces {}. The names and braces will be automatically replaced with the corresponding attribute values on displaying the title. If a certain attribute cannot be found by the specified name, this name with enclosing braces is passed as is into the title.

The following code shows how to set the Text property to make map item titles display the location name and altitude associated with map items and stored in map item attributes called Name and Altitude.

Delphi
<dxMapControlItemLayer>.ItemTitleOptions.Text := '{Name}, Altitude: {Altitude} m';
See Also