Class ChartLegendItem
Represents the legend item in SfChart. This class can be used to customize the appearance of legend items.
Inheritance
System.Object
ChartLegendItem
Implements
System.ComponentModel.INotifyPropertyChanged
Namespace: Syncfusion.SfChart.XForms
Assembly: Syncfusion.SfChart.XForms.dll
Syntax
public class ChartLegendItem : Object, INotifyPropertyChanged
Constructors
ChartLegendItem()
Initializes a new instance of the ChartLegendItem class.
Declaration
public ChartLegendItem()
Properties
DataPoint
Gets the corresponding data point for accumulation series.
Declaration
public object DataPoint { get; }
Property Value
Type |
---|
System.Object |
IconColor
Gets or sets the corresponding icon color for legend item.
Declaration
public Color IconColor { get; set; }
Property Value
Type |
---|
Xamarin.Forms.Color |
Index
Gets the corresponding index for legend item.
Declaration
public int Index { get; }
Property Value
Type |
---|
System.Int32 |
IsEnabled
Gets a value indicating whether whether to display the legend item.
Declaration
public bool IsEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean | This property takes the boolean value. |
Label
Gets or sets the corresponding label for legend item.
Declaration
public string Label { get; set; }
Property Value
Type |
---|
System.String |
LabelStyle
Gets or sets the corresponding label style for legend item.
Declaration
public ChartLegendLabelStyle LabelStyle { get; set; }
Property Value
Type |
---|
ChartLegendLabelStyle |
Series
Gets the corresponding series for legend item.
Declaration
public ChartSeries Series { get; }
Property Value
Type |
---|
ChartSeries |
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
---|
System.ComponentModel.PropertyChangedEventHandler |
Implements
System.ComponentModel.INotifyPropertyChanged