Back to Devexpress

StackedBarTotalLabel Class

corelibraries-devexpress-dot-xtracharts-6dd0bd08.md

latest2.6 KB
Original Source

StackedBarTotalLabel Class

The stacked bars’ total labels’ settings storage.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public class StackedBarTotalLabel :
    TotalLabel,
    ISeriesLabelPropertiesProvider,
    ITextPropertiesProvider,
    IHitTest,
    ISupportTextAntialiasing
vb
Public Class StackedBarTotalLabel
    Inherits TotalLabel
    Implements ISeriesLabelPropertiesProvider,
               ITextPropertiesProvider,
               IHitTest,
               ISupportTextAntialiasing

The following members return StackedBarTotalLabel objects:

Remarks

The instance of the class configures stacked bars’ total labels’ appearance and content.

Example

The XYDiagramPaneBase.StackedBarTotalLabel property allows you to configure total labels of stacked bars that are in the pane. Note that Total labels’ settings are not shared between Panes. Thus, you can configure Total Labels that are on various panes differently.

csharp
StackedBarTotalLabel totalLabel = ((XYDiagram)cartesianChart.Diagram).DefaultPane.StackedBarTotalLabel;
totalLabel.Visible = true;
totalLabel.ShowConnector = true;
totalLabel.TextPattern = "Total:\n{TV:F2}";
vb
Dim totalLabel As StackedBarTotalLabel = CType(cartesianChart.Diagram, XYDiagram).DefaultPane.StackedBarTotalLabel
totalLabel.Visible = True
totalLabel.ShowConnector = True
totalLabel.TextPattern = "Total:" & vbLf & "{TV:F2}"

Inheritance

Object ChartElement TotalLabel StackedBarTotalLabel

See Also

StackedBarTotalLabel Members

DevExpress.XtraCharts Namespace