MapShape.TitleOptions Property

Provides access to the options that define the visibility, text and appearance of a shape title.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v20.1.dll

Declaration

public ShapeTitleOptions TitleOptions { get; }
Public ReadOnly Property TitleOptions As ShapeTitleOptions

Property Value

Type Description
ShapeTitleOptions

A ShapeTitleOptions object.

Examples

This example demonstrates how to customize shape title options. To do this, customize the required properties from the following list.

private void Form1_Load(object sender, System.EventArgs e) {
    MapItemStorage storage = new MapItemStorage();
    VectorItemsLayer layer = new VectorItemsLayer() {
        Data = storage
    };

    dot = new MapDot() { Size = 100 };
    dot.TitleOptions.TextColor = Color.Orange;
    dot.TitleOptions.TextGlowColor = Color.Black;
    dot.TitleOptions.Pattern = "{Title}";

    dot.Attributes.Add(new MapItemAttribute() { Name = "Title", Value = "Hello,\nI am Dot." });
    storage.Items.Add(dot);

    mapControl1.Layers.Add(layer);
}
See Also