Back to Devexpress

HeatmapTitleBase.TextColor Property

corelibraries-devexpress-dot-xtracharts-dot-heatmap-dot-heatmaptitlebase-39157cea.md

latest2.6 KB
Original Source

HeatmapTitleBase.TextColor Property

Gets or sets the title text color.

Namespace : DevExpress.XtraCharts.Heatmap

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public Color TextColor { get; set; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
Public Property TextColor As Color

Property Value

TypeDescription
Color

The text color.

|

Example

The following example adds a title to a heatmap, and configures title content, position, and font settings:

csharp
using DevExpress.XtraCharts.Heatmap;
using DevExpress.Drawing;
using DevExpress.Utils;
using System.Drawing;
//...
    public Form1() {
        InitializeComponent();
        //...
        heatmap.Titles.Add(new HeatmapTitle { 
            Text = "Sales by Categories",
            Alignment = StringAlignment.Far,
            Dock = HeatmapTitleDockStyle.Bottom,
            EnableAntialiasing = DefaultBoolean.True,
            DXFont = new DXFont("SegoeUI",12),
            Indent = 30,
            TextColor = Color.DarkBlueTitleBase
        });
    }
vb
Imports DevExpress.XtraCharts.Heatmap
Imports DevExpress.Drawing
Imports DevExpress.Utils
Imports System.Drawing
'...
    Public Sub New()
        InitializeComponent()
        '...
        heatmap.Titles.Add(New HeatmapTitle With {
            .Text = "Sales by Categories",
            .Alignment = StringAlignment.Far,
            .Dock = HeatmapTitleDockStyle.Bottom,
            .EnableAntialiasing = DefaultBoolean.[True],
            .DXFont = New DXFont("SegoeUI",12),
            .Indent = 30,
            .TextColor = Color.DarkBlue
        })
    End Sub

See Also

HeatmapTitleBase Class

HeatmapTitleBase Members

DevExpress.XtraCharts.Heatmap Namespace