Class LegendItem
Represents the legend item members.
Implements
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.Chart.WinUI.dll
Syntax
public class LegendItem : DependencyObject, INotifyPropertyChanged, ILegendItem
Constructors
LegendItem()
Initializes a new instance of the LegendItem class.
Declaration
public LegendItem()
Fields
OpacityProperty
The DependencyProperty for Opacity property.
Declaration
public static readonly DependencyProperty OpacityProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
Properties
CheckBoxVisibility
Gets or sets the checkbox visibility of the legend item.
Declaration
public Visibility CheckBoxVisibility { get; set; }
Property Value
Type |
---|
Microsoft.UI.Xaml.Visibility |
IconBrush
Gets or sets an icon color for legend item.
Declaration
public Brush IconBrush { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.Media.Brush | The Microsoft.UI.Xaml.Media.Brush value. |
IconHeight
Gets or sets the height of the legend item icon.
Declaration
public double IconHeight { get; set; }
Property Value
Type |
---|
System.Double |
IconTemplate
Gets or sets the data template for the legend icon.
Declaration
public DataTemplate IconTemplate { get; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DataTemplate | Microsoft.UI.Xaml.DataTemplate |
IconVisibility
Gets or sets an icon visibility of the legend item.
Declaration
public Visibility IconVisibility { get; set; }
Property Value
Type |
---|
Microsoft.UI.Xaml.Visibility |
IconWidth
Gets or sets the width of the legend item icon.
Declaration
public double IconWidth { get; set; }
Property Value
Type |
---|
System.Double |
Index
Gets the corresponding index for legend item
Declaration
public int Index { get; }
Property Value
Type |
---|
System.Int32 |
IsToggled
Declaration
public bool IsToggled { get; set; }
Property Value
Type |
---|
System.Boolean |
Item
Gets the corresponding data point for series.
Declaration
public object Item { get; }
Property Value
Type |
---|
System.Object |
ItemMargin
Gets or sets the margin of the legend item.
Declaration
public Thickness ItemMargin { get; }
Property Value
Type |
---|
Microsoft.UI.Xaml.Thickness |
Opacity
Gets or sets an Opacity of the legend item.
Declaration
public double Opacity { get; set; }
Property Value
Type |
---|
System.Double |
Stroke
Declaration
public Brush Stroke { get; set; }
Property Value
Type |
---|
Microsoft.UI.Xaml.Media.Brush |
StrokeThickness
Declaration
public double StrokeThickness { get; set; }
Property Value
Type |
---|
System.Double |
Text
Gets or sets the corresponding label for legend item text.
Declaration
public string Text { get; set; }
Property Value
Type |
---|
System.String |
Visibility
Declaration
public Visibility Visibility { get; set; }
Property Value
Type |
---|
Microsoft.UI.Xaml.Visibility |
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
---|
System.ComponentModel.PropertyChangedEventHandler |