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

How to: Show a Title for a Vector Element

This example illustrates how to add a title to a map’s dot.

To accomplish this, create a ShapeTitleOptions object and assign it to the MapShapeBase.TitleOptions property. Then, specify the title’s text via the ShapeTitleOptions.Pattern property.

Note that the title’s text can be invisible on a map. So make sure the ShapeTitleOptions.VisibilityMode property is set to Visible.

<dxm:MapDot.TitleOptions>
    <dxm:ShapeTitleOptions Visible="True" Pattern="Chicago" />
</dxm:MapDot.TitleOptions>
See Also