Skip to main content
All docs

TitleDockStyle Enum

Lists values that specify how a title is positioned in a chart.

Namespace: DevExpress.XtraTreeMap

Assembly: DevExpress.XtraTreeMap.v23.2.dll

NuGet Package: DevExpress.TreeMap


public enum TitleDockStyle


Name Description Image

A title is positioned at the top of the chart.

Title Dock Style - Top


A title is positioned at the bottom of the chart.

Title Dock Style - Bottom


A title is positioned to the left of the chart.

Title Dock Style - Left


A title is positioned to the right of the chart.

Title Dock Style - Right

Related API Members

The following properties accept/return TitleDockStyle values:


How to: Add Multiple Titles to a TreeMap

This example adds two titles to a treemap and customizes title settings such as content, font, and alignment.

Treemap titles

  • Create a Title object.

  • Specify the settings below to customize the title’s content, alignment, text color, and font:

  • Add the title to the treemap’s Titles collection.

  • Repeat the previous steps to add a new title.
using DevExpress.XtraTreeMap;
using System;
using System.Drawing;
using System.Windows.Forms;
    private void Form1_Load(object sender, EventArgs e) {
        // Add and customize the first title.
        Title title = new Title();
        title.Text = "US Largest Companies";
        title.Dock = TitleDockStyle.Top;
        title.TextColor = Color.Black;
        title.Font = new Font("Tahoma", 16);

        // Add and customize the second title.
        Title subtitle = new Title();
        subtitle.Text = "in 2011";
        subtitle.Dock = TitleDockStyle.Top;
        subtitle.TextColor = Color.DarkGray;
        subtitle.Font = new Font("Tahoma", 11);

See Also