Skip to main content
A newer version of this page is available. .

ShapeTitleOptions.TextColor Property

Gets or sets the text color of shape titles.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v21.2.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Map

Declaration

public Color TextColor { get; set; }

Property Value

Type Description
Color

A Color value.

Property Paths

You can access this nested property as listed below:

Object Type Path to TextColor
MapShape
.TitleOptions .TextColor

Example

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

View Example

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