TdxMapItemTitleOptions.Text Property
Specifies the title’s text.
Declaration
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.
<dxMapControlItemLayer>.ItemTitleOptions.Text := '{Name}, Altitude: {Altitude} m';
See Also