Class SunburstChartLegend
Represents the Sunburst chart legend. To render this, create an instance SunburstChartLegend and set required properties.
Inheritance
Namespace: Syncfusion.SfSunburstChart.XForms
Assembly: Syncfusion.SfSunburstChart.XForms.dll
Syntax
public class SunburstChartLegend : Element, IThemeElement
Constructors
SunburstChartLegend()
Initializes a new instance of the SunburstChartLegend class.
Declaration
public SunburstChartLegend()
Fields
IconHeightProperty
Gets or sets the IconHeight property. This is used to set the height for legend icon. This is a bindable property.
Declaration
public static readonly BindableProperty IconHeightProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
IconTypeProperty
Gets or sets the iconType property, which is used to customize the legend icon types. This is bindable property.
Declaration
public static readonly BindableProperty IconTypeProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
IconWidthProperty
Gets or sets the IconWidth property. This is used to customize the width of the legend icon. This is a bindable property.
Declaration
public static readonly BindableProperty IconWidthProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
IsVisibleProperty
Gets or sets a value that indicates whether the legend is visible in the chart. This is a bindable property.
Declaration
public static readonly BindableProperty IsVisibleProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ItemMarginProperty
Gets or sets the ItemMargin property. This is used to set the margin for legend items. This is a bindable property.
Declaration
public static readonly BindableProperty ItemMarginProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
LabelStyleProperty
Gets or sets the customized style for the label inside the legend item. This is a bindable property.
Declaration
public static readonly BindableProperty LabelStyleProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
LegendPositionProperty
Gets or sets the LegendPosition property, which is used to place the legend inside the chart. This is a bindable property.
Declaration
public static readonly BindableProperty LegendPositionProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Properties
IconHeight
Gets or sets the IconHeight property. This is used to set the height for legend icon. This is a bindable property.
Declaration
public double IconHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | This property takes double value. |
IconType
Gets or sets the iconType property, which is used to customize the legend icon types. This is bindable property.
Declaration
public SunburstLegendIcon IconType { get; set; }
Property Value
Type |
---|
SunburstLegendIcon |
IconWidth
Gets or sets the IconWidth property. This is used to customize the width of the legend icon. This is a bindable property.
Declaration
public double IconWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | This property takes double value. |
IsVisible
Gets or sets a value indicating whether the legend is visible in the chart. This is a bindable property.
Declaration
public bool IsVisible { get; set; }
Property Value
Type |
---|
System.Boolean |
ItemMargin
Gets or sets the ItemMargin property. This is used to set the margin for legend items. This is a bindable property.
Declaration
public Thickness ItemMargin { get; set; }
Property Value
Type | Description |
---|---|
Xamarin.Forms.Thickness | This propery takes |
LabelStyle
Gets or sets the customized style for the label inside the legend item. This is a bindable property.
Declaration
public SunburstLegendLabelStyle LabelStyle { get; set; }
Property Value
Type | Description |
---|---|
SunburstLegendLabelStyle | This property takes the SunburstLegendLabelStyle as its value. |
LegendPosition
Gets or sets the LegendPosition property, which is used to place the legend inside the chart. This is a bindable property.
Declaration
public SunburstDockPosition LegendPosition { get; set; }
Property Value
Type | Description |
---|---|
SunburstDockPosition | This property takes the SunburstDockPosition as its value. |
Methods
OnBindingContextChanged()
This method is used to override the binding context and set the binding context when the properties are changed.
Declaration
protected override void OnBindingContextChanged()