menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartTitle - API Reference

    Show / Hide Table of Contents

    Class ChartTitle

    Represents title in SfChart. This class provides options to customize the appearance of chart title.

    Inheritance
    System.Object
    ChartTitle
    Namespace: Syncfusion.SfChart.XForms
    Assembly: Syncfusion.SfChart.XForms.dll
    Syntax
    public class ChartTitle : Element, IThemeElement
    Examples
    SfChart chart = new SfChart();
    chart.Title = new ChartTitle();
    chart.Title.Text = "SfChart";

    Constructors

    ChartTitle()

    Initializes a new instance of the ChartTitle class.

    Declaration
    public ChartTitle()

    Fields

    BackgroundColorProperty

    Gets or sets the the background color of the title. 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 title. This is a bindable property.

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

    BorderWidthProperty

    Gets or sets the width of the chart title border line. This is a bindable property.

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

    FontAttributesProperty

    Gets or sets the font style for the chart title. 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 chart title. This is a bindable property.

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

    FontProperty

    Gets or sets the Font for the chart title. 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 chart title. This is a bindable property.

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

    LineBreakModeProperty

    Gets or sets the value that indicates text wrap for the title. This is a bindable property.

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

    MarginProperty

    Gets or sets the margin of the chart title. This is a bindable property.

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

    TextAlignmentProperty

    Gets or sets the alignment of the chart title. This is a bindable property.

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

    TextColorProperty

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

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

    TextProperty

    Gets or sets the text to be displayed on the chart title. This is a bindable property.

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

    Properties

    BackgroundColor

    Gets or sets the the background color of the title. 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 title. 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.

    BorderWidth

    Gets or sets the width of the chart title border line. This is a bindable property.

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

    This property takes the double value.

    Font

    Gets or sets the Font for the chart title. 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 chart title. 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 chart title. 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 chart title. This is a bindable property.

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

    The size of the font.

    LineBreakMode

    Gets or sets the value that indicates text wrap for the title.

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

    Xamarin.Forms.LineBreakMode.CharacterWrap is not supported.

    Margin

    Gets or sets the margin of the chart title. 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.

    Text

    Gets or sets the text to be displayed on the chart title. This is a bindable property.

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

    This property takes the string value.

    TextAlignment

    Gets or sets the alignment of the chart title. This is a bindable property.

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

    This property takes the TextAlignment value.

    TextColor

    Gets or sets the color for the text of the title. 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