menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartPlotBandLabelStyle - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartPlotBandLabelStyle

    Represents a LabelStyle class that can be used to customize the plot band labels.

    Inheritance
    System.Object
    ChartLabelStyle
    ChartPlotBandLabelStyle
    Inherited Members
    ChartLabelStyle.Background
    ChartLabelStyle.BackgroundProperty
    ChartLabelStyle.CornerRadius
    ChartLabelStyle.CornerRadiusProperty
    ChartLabelStyle.FontAttributes
    ChartLabelStyle.FontAttributesProperty
    ChartLabelStyle.FontFamily
    ChartLabelStyle.FontFamilyProperty
    ChartLabelStyle.FontSize
    ChartLabelStyle.FontSizeProperty
    ChartLabelStyle.LabelFormat
    ChartLabelStyle.LabelFormatProperty
    ChartLabelStyle.Margin
    ChartLabelStyle.MarginProperty
    ChartLabelStyle.Stroke
    ChartLabelStyle.StrokeProperty
    ChartLabelStyle.StrokeWidth
    ChartLabelStyle.StrokeWidthProperty
    ChartLabelStyle.TextColor
    ChartLabelStyle.TextColorProperty
    Namespace: Syncfusion.Maui.Charts
    Assembly: Syncfusion.Maui.Charts.dll
    Syntax
    public class ChartPlotBandLabelStyle : ChartLabelStyle, ITextElement, IThemeElement
    Remarks

    It provides more options to customize the plot band label.

    HorizontalAlignment - To adjust the alignment for labels, refer to this HorizontalTextAlignment property.

    VerticalAlignment - To adjust the alignment for labels, refer to this VerticalTextAlignment property.

    Angle - To adjust the angle rotation for labels, refer to this Angle property.

    OffsetX - To adjust the padding for labels, refer to this OffsetX property.

    OffsetY - To adjust the padding for labels, refer to this OffsetY property.

    Constructors

    ChartPlotBandLabelStyle()

    Initializes a new instance of the ChartPlotBandLabelStyle.

    Declaration
    public ChartPlotBandLabelStyle()

    Fields

    AngleProperty

    Identifies the Angle bindable property.

    Declaration
    public static readonly BindableProperty AngleProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    HorizontalTextAlignmentProperty

    Identifies the HorizontalTextAlignment bindable property.

    Declaration
    public static readonly BindableProperty HorizontalTextAlignmentProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    OffsetXProperty

    Identifies the OffsetX bindable property

    Declaration
    public static readonly BindableProperty OffsetXProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    OffsetYProperty

    Identifies the OffsetY bindable property

    Declaration
    public static readonly BindableProperty OffsetYProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    VerticalTextAlignmentProperty

    Identifies the VerticalTextAlignment bindable property.

    Declaration
    public static readonly BindableProperty VerticalTextAlignmentProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    Properties

    Angle

    Gets or sets a value that indicates the angle rotation of the plot band label text.

    Declaration
    public double Angle { get; set; }
    Property Value
    Type Description
    System.Double

    It accepts System.Double values and the default value is 0.

    HorizontalTextAlignment

    Gets or sets the horizontal alignment of the plot band label text.

    Declaration
    public ChartLabelAlignment HorizontalTextAlignment { get; set; }
    Property Value
    Type Description
    ChartLabelAlignment

    This property takes the ChartLabelAlignment as its value. Its default value is Center.

    OffsetX

    Gets or sets a value to provide horizontal padding to the plot band label text.

    Declaration
    public double OffsetX { get; set; }
    Property Value
    Type Description
    System.Double

    It accepts System.Double values and the default value is 0.

    OffsetY

    Gets or sets a value to provide vertical padding to the plot band label text.

    Declaration
    public double OffsetY { get; set; }
    Property Value
    Type Description
    System.Double

    It accepts System.Double values and the default value is 0.

    VerticalTextAlignment

    Gets or sets the vertical alignment of the plot band label text.

    Declaration
    public ChartLabelAlignment VerticalTextAlignment { get; set; }
    Property Value
    Type Description
    ChartLabelAlignment

    This property takes the ChartLabelAlignment as its value. Its default value is Center.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved