Back to Devexpress

PieTotalLabel Class

corelibraries-devexpress-dot-xtracharts-58b60454.md

latest2.1 KB
Original Source

PieTotalLabel Class

The pie’s total labels settings storage.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public class PieTotalLabel :
    TotalLabel
vb
Public Class PieTotalLabel
    Inherits TotalLabel

The following members return PieTotalLabel objects:

Remarks

The instance of the class configures pie’s total labels’ appearance and content.

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()

Inheritance

Object ChartElement TotalLabel PieTotalLabel

See Also

PieTotalLabel Members

DevExpress.XtraCharts Namespace