Back to Devexpress

SeriesLabelStyle Class

maui-devexpress-dot-maui-dot-charts-d3f5b27d.md

latest3.2 KB
Original Source

SeriesLabelStyle Class

Stores series label appearance settings.

Namespace : DevExpress.Maui.Charts

Assembly : DevExpress.Maui.Charts.dll

NuGet Package : DevExpress.Maui.Charts

Declaration

csharp
public class SeriesLabelStyle :
    TextElementStyleBase

The following members return SeriesLabelStyle objects:

Example

This example adds series labels to a bar chart, and customize their text pattern, layout and appearance.

xaml
<dxc:ChartView>
    <dxc:ChartView.Series>
        <dxc:BarSeries>
            <dxc:BarSeries.Label>
                <dxc:BarSeriesLabel Position="InsideTop"
                                    Indent="50"
                                    TextPattern="{}{V$.###}">
                    <dxc:BarSeriesLabel.Style>
                        <dxc:SeriesLabelStyle>
                            <dxc:SeriesLabelStyle.TextStyle>
                                <dxc:TextStyle Color="White" Size="24"/>
                            </dxc:SeriesLabelStyle.TextStyle>
                        </dxc:SeriesLabelStyle>
                    </dxc:BarSeriesLabel.Style>
                </dxc:BarSeriesLabel>
            </dxc:BarSeries.Label>
        </dxc:BarSeries>
    </dxc:ChartView.Series>
</dxc:ChartView>
csharp
barSeries.Label = new BarSeriesLabel {
    Position = BarSeriesLabelPosition.InsideTop,
    Indent = 50,
    TextPattern = "{V$.###}",
    Style = new SeriesLabelStyle {
        TextStyle = new TextStyle {Color = Color.White, Size = 24}
    }
};

Implements

IElementController

INotifyPropertyChanged

Inheritance

System.Object BindableObject Element ChartElementBase ChartElement StyleBase TextElementStyleBase SeriesLabelStyle PieSeriesLabelStyle

Extension Methods

Yield<SeriesLabelStyle>()

YieldIfNotNull<SeriesLabelStyle>()

See Also

SeriesLabelStyle Members

DevExpress.Maui.Charts Namespace