Back to Devexpress

TreemapSeriesOptions.ParentLabelLayout Property

officefileapi-devexpress-dot-spreadsheet-dot-charts-dot-treemapseriesoptions.md

latest3.1 KB
Original Source

TreemapSeriesOptions.ParentLabelLayout Property

Returns or specifies the layout of parent labels in a treemap chart.

Namespace : DevExpress.Spreadsheet.Charts

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
TreemapParentLabelLayout ParentLabelLayout { get; set; }
vb
Property ParentLabelLayout As TreemapParentLabelLayout

Property Value

TypeDescription
TreemapParentLabelLayout

An enumeration member that specifies how parent labels are displayed in the chart.

|

Available values:

NameDescription
None

Parent labels are not displayed.

| | Banner |

Parent labels are displayed as banners above the categories.

| | Overlapping |

Parent labels are displayed inside the categories.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ParentLabelLayout
SeriesLayoutOptions

.Treemap .ParentLabelLayout

|

Remarks

The example below creates a treemap chart. Parent labels are displayed as banners above the categories.

csharp
// Create a treemap chart and specify its location.
Chart chart = worksheet.Charts.Add(ChartType.Treemap, worksheet["B2:E14"]);
chart.TopLeftCell = worksheet.Cells["G2"];
chart.BottomRightCell = worksheet.Cells["N17"];

// Specify series options.
var options = chart.Series[0].LayoutOptions.Treemap;
options.ParentLabelLayout = TreemapParentLabelLayout.Banner;

// Add the chart title.
chart.Title.Visible = true;
chart.Title.SetValue("Daily Food Sales");
vb
' Create a treemap chart and specify its location.
Dim chart As Chart = worksheet.Charts.Add(ChartType.Treemap, worksheet("B2:E14"))
chart.TopLeftCell = worksheet.Cells("G2")
chart.BottomRightCell = worksheet.Cells("N17")

' Specify series options.
Dim options As TreemapSeriesOptions = chart.Series(0).LayoutOptions.Treemap
options.ParentLabelLayout = TreemapParentLabelLayout.Banner

' Add the chart title.
chart.Title.Visible = True
chart.Title.SetValue("Daily Food Sales")

See Also

TreemapSeriesOptions Interface

TreemapSeriesOptions Members

DevExpress.Spreadsheet.Charts Namespace