Interface ILegendItem
This interface contains the legend item elements.
Namespace: Syncfusion.Maui.Core
Assembly: Syncfusion.Maui.Core.dll
Syntax
public interface ILegendItem
Properties
DisableBrush
Gets or sets the legend icon and text disable color when toggled.
Declaration
Brush DisableBrush { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Controls.Brush |
FontAttributes
Gets or sets the font family name for the legend item label.
Declaration
FontAttributes FontAttributes { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Controls.FontAttributes |
FontFamily
Gets or sets the font family name for the legend item label.
Declaration
string FontFamily { get; set; }
Property Value
Type |
---|
System.String |
FontSize
Gets or sets the font size for the legend label text.
Declaration
float FontSize { get; set; }
Property Value
Type | Description |
---|---|
System.Single | This property takes float value. |
IconBrush
Gets or sets the corresponding icon color for legend item.
Declaration
Brush IconBrush { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Controls.Brush |
IconHeight
Gets or sets the height of the legend icon.
Declaration
double IconHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | This property takes double value. |
IconType
Gets or sets the icon type in legend.
Declaration
ShapeType IconType { get; set; }
Property Value
Type |
---|
ShapeType |
IconWidth
Gets or sets the width of the legend icon.
Declaration
double IconWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | This property takes double value. |
Index
Gets the corresponding index for legend item.
Declaration
int Index { get; }
Property Value
Type |
---|
System.Int32 |
IsIconVisible
Gets or sets a value indicating whether to display the legend icon.
Declaration
bool IsIconVisible { get; set; }
Property Value
Type |
---|
System.Boolean |
IsToggled
Gets or sets a value indicating whether the legend item is toggled or not.
Declaration
bool IsToggled { get; set; }
Property Value
Type |
---|
System.Boolean |
Item
Gets the corresponding data point for series.
Declaration
object Item { get; }
Property Value
Type |
---|
System.Object |
Text
Gets or sets the corresponding label for legend item.
Declaration
string Text { get; set; }
Property Value
Type |
---|
System.String |
TextColor
Gets or sets the corresponding text color for legend item.
Declaration
Color TextColor { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Graphics.Color |
TextMargin
Gets or sets the margin of the legend text.
Declaration
Thickness TextMargin { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Thickness |