Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TitleDockStyle Enum

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

Namespace: DevExpress.XtraTreeMap

Assembly: DevExpress.XtraTreeMap.v24.2.dll

NuGet Package: DevExpress.TreeMap

#Declaration

public enum TitleDockStyle

#Members

Name Description Image
Top

A title is positioned at the top of the chart.

Title Dock Style - Top

Bottom

A title is positioned at the bottom of the chart.

Title Dock Style - Bottom

Left

A title is positioned to the left of the chart.

Title Dock Style - Left

Right

A title is positioned to the right of the chart.

Title Dock Style - Right

#Related API Members

The following properties accept/return TitleDockStyle values:

#Example

#How to: Add Multiple Titles to a TreeMap

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

WinForms - TreeMap Titles, DevExpress

  1. Create a Title object.

  2. Specify the following settings to customize the title’s content, alignment, text color, and font:

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

Repeat the steps to add another 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.DXFont = new DXFont("Tahoma", 16);
  treeMapControl1.Titles.Add(title);

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