Back to Devexpress

PieSeriesView.TotalLabel Property

corelibraries-devexpress-dot-xtracharts-dot-pieseriesview.md

latest1.9 KB
Original Source

PieSeriesView.TotalLabel Property

Returns settings that configure the Pie series’ total label.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[PersistenceMode(PersistenceMode.InnerProperty)]
[XtraChartsLocalizableCategory(XtraChartsCategory.Elements)]
public PieTotalLabel TotalLabel { get; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Elements)>
<PersistenceMode(PersistenceMode.InnerProperty)>
Public ReadOnly Property TotalLabel As PieTotalLabel

Property Value

TypeDescription
PieTotalLabel

The Pie series’ total label settings storage.

|

Example

Use the PieSeriesView.TotalLabel property to access settings that configure a Pie (Doughnut) series’ Total Label.

csharp
PieTotalLabel totalLabel = ((DoughnutSeriesView)pieChart.Series["Country Areas"].View).TotalLabel;
totalLabel.Visible = true;
totalLabel.TextPattern = "Total area\n{TV:F2} km\xB2";
vb
Dim totalLabel As PieTotalLabel = CType(pieChart.Series("Country Areas").View, DoughnutSeriesView).TotalLabel
totalLabel.Visible = True
totalLabel.TextPattern = "Total area" & vbLf & "{TV:F2} km" & ChrW(&HB2).ToString()

See Also

PieSeriesView Class

PieSeriesView Members

DevExpress.XtraCharts Namespace