Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartLabelStyle

    Show / Hide Table of Contents

    Class ChartLabelStyle

    Serves as a base class for all types of label style class. This class provides options to customize the font-family, color, and size of axis labels.

    Inheritance
    System.Object
    ChartLabelStyle
    ChartAnnotationLabelStyle
    ChartAxisLabelStyle
    ChartStripLineLabelStyle
    ChartTrackballAxisLabelStyle
    ChartTrackballLabelStyle
    DataMarkerLabelStyle
    Namespace: Syncfusion.SfChart.XForms
    Assembly: Syncfusion.SfChart.XForms.dll
    Syntax
    public class ChartLabelStyle : Element, IThemeElement

    Constructors

    ChartLabelStyle()

    Initializes a new instance of the ChartLabelStyle class.

    Declaration
    public ChartLabelStyle()

    Fields

    BackgroundColorProperty

    Gets or sets the background color of the labels. This is a bindable property.

    Declaration
    public static readonly BindableProperty BackgroundColorProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    BorderColorProperty

    Gets or sets the border stroke color of the labels. This is a bindable property.

    Declaration
    public static readonly BindableProperty BorderColorProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    BorderThicknessProperty

    Gets or sets the border thickness of the label. This is a bindable property.

    Declaration
    public static readonly BindableProperty BorderThicknessProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    FontAttributesProperty

    Gets or sets the font style for the label. This is a bindable property.

    Declaration
    public static readonly BindableProperty FontAttributesProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    FontFamilyProperty

    Gets or sets the font family name for the label. This is a bindable property.

    Declaration
    public static readonly BindableProperty FontFamilyProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    FontProperty

    Gets or sets the label font. This is a bindable property.

    Declaration
    public static readonly BindableProperty FontProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    FontSizeProperty

    Gets or sets the font size for the label. This is a bindable property.

    Declaration
    public static readonly BindableProperty FontSizeProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    LabelFormatProperty

    Gets or sets the label format. This is a bindable property.

    Declaration
    public static readonly BindableProperty LabelFormatProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    MarginProperty

    Gets or sets the margin of the label to customize the appearance of label. This is a bindable property.

    Declaration
    public static readonly BindableProperty MarginProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    TextColorProperty

    Gets or sets the color for the text of the label. This is a bindable property.

    Declaration
    public static readonly BindableProperty TextColorProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    Properties

    BackgroundColor

    Gets or sets the background color of the labels. This is a bindable property.

    Declaration
    public Color BackgroundColor { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.Color

    This property takes the Xamarin.Forms.Color value.

    BorderColor

    Gets or sets the border stroke color of the labels. This is a bindable property.

    Declaration
    public Color BorderColor { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.Color

    This property takes the Xamarin.Forms.Color value.

    BorderThickness

    Gets or sets the border thickness of the label. This is a bindable property.

    Declaration
    public Thickness BorderThickness { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.Thickness

    This property takes the Xamarin.Forms.Thickness value.

    Font

    Gets or sets the label font. This property is used to change the text size, font family and font weight. This is a bindable property.

    Declaration
    public Font Font { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.Font

    This property takes the Font value.

    FontAttributes

    Gets or sets the font style for the label. This is a bindable property.

    Declaration
    public FontAttributes FontAttributes { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.FontAttributes

    FontFamily

    Gets or sets the font family name for the label. This is a bindable property.

    Declaration
    public string FontFamily { get; set; }
    Property Value
    Type Description
    System.String

    FontSize

    Gets or sets the font size for the label. This is a bindable property.

    Declaration
    public float FontSize { get; set; }
    Property Value
    Type Description
    System.Single

    LabelFormat

    Gets or sets the label format. This property is used to set numeric or date-time format to the chart axis label. This is a bindable property.

    Declaration
    public string LabelFormat { get; set; }
    Property Value
    Type Description
    System.String

    This property take the string value.

    Remarks

    LabelFormat will no be applicable for title.

    Margin

    Gets or sets the margin of the label to customize the appearance of label. This is a bindable property.

    Declaration
    public Thickness Margin { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.Thickness

    This property takes the Xamarin.Forms.Thickness value.

    TextColor

    Gets or sets the color for the text of the label. This is a bindable property.

    Declaration
    public Color TextColor { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.Color

    This property takes the Xamarin.Forms.Color value.

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