ShapeTitleOptions.Pattern Property

Gets or sets the pattern for shape titles.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v20.1.dll

Declaration

[DefaultValue("")]
public string Pattern { get; set; }
<DefaultValue("")>
Public Property Pattern As String

Property Value

Type Default Description
String

String.Empty

A String value.

Property Paths

You can access this nested property as listed below:

Show 13 property paths

Remarks

This property allows specifying text displaying as a title of a vector item. Also it allows using attributes to show them inside the title.

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