Back to Devexpress

ShapeTitleOptions.TextGlowColor Property

windowsforms-devexpress-dot-xtramap-dot-shapetitleoptions-cb52f33e.md

latest3.5 KB
Original Source

ShapeTitleOptions.TextGlowColor Property

Gets or sets the text glowing color of shape titles.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public Color TextGlowColor { get; set; }
vb
Public Property TextGlowColor As Color

Property Value

TypeDescription
Color

A Color value.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to TextGlowColor
MapShape

.TitleOptions .TextGlowColor

|

Remarks

The following image explains the text color and the text glow color.

Example

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

csharp
using System.Drawing;
using System.Windows.Forms;
using DevExpress.XtraMap;
// ...
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);
}
vb
Imports System.Drawing
Imports System.Windows.Forms
Imports DevExpress.XtraMap
' ...
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim storage As New MapItemStorage()
    Dim layer As New VectorItemsLayer() With {.Data = storage}

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

    dot.Attributes.Add(New MapItemAttribute() With {.Name = "Title", .Value = "Hello," & ControlChars.Lf & "I am Dot."})
    storage.Items.Add(dot)

    mapControl1.Layers.Add(layer)
End Sub

See Also

ShapeTitleOptions Class

ShapeTitleOptions Members

DevExpress.XtraMap Namespace