Class LegendItem
Represents the legend item members.
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.Chart.WinUI.dll
Syntax
public class LegendItem : DependencyObject, ILegendItem
Constructors
LegendItem()
Initializes a new instance of the LegendItem class.
Declaration
public LegendItem()
Properties
CheckBoxVisibility
Gets or sets checkbox visibility of the legend item.
Declaration
public Visibility CheckBoxVisibility { get; set; }
Property Value
Type |
---|
Microsoft.UI.Xaml.Visibility |
IconBrush
Gets or sets 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 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 icon visibility of the legend item.
Declaration
public Visibility IconVisibility { get; set; }
Property Value
Type |
---|
Microsoft.UI.Xaml.Visibility |
IconWidth
Gets or sets 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
Gets or sets a value indicating whether the legend item is clicked or not.
Declaration
public bool IsToggled { get; }
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 margin of the legend item.
Declaration
public Thickness ItemMargin { get; }
Property Value
Type |
---|
Microsoft.UI.Xaml.Thickness |
Opacity
Gets or sets Opacity of the legend item.
Declaration
public double Opacity { get; }
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 |
Methods
UpdateToggle(Boolean)
Declaration
public void UpdateToggle(bool isToggled)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isToggled |
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
---|
System.ComponentModel.PropertyChangedEventHandler |