alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class LegendItem

    Inheritance
    object
    LegendItem
    Implements
    INotifyPropertyChanged
    ILegendItem
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Maui.Core
    Assembly: Syncfusion.Maui.Core.dll
    Syntax
    public class LegendItem : INotifyPropertyChanged, ILegendItem

    Constructors

    LegendItem()

    Initializes a new instance of the LegendItem class.

    Declaration
    public LegendItem()

    Properties

    FontAttributes

    Gets or sets the font attribute type for the legend item label.

    Declaration
    public FontAttributes FontAttributes { get; }
    Property Value
    Type
    FontAttributes

    FontFamily

    Gets or sets the font family name for the legend item label.

    Declaration
    public string FontFamily { get; }
    Property Value
    Type
    string

    FontSize

    Gets or sets the font size for the legend label text.

    Declaration
    public float FontSize { get; }
    Property Value
    Type
    float

    IconBrush

    Gets or sets the corresponding icon color for legend item.

    Declaration
    public Brush IconBrush { get; set; }
    Property Value
    Type
    Brush

    IconHeight

    Gets or sets the height of the legend icon.

    Declaration
    public double IconHeight { get; set; }
    Property Value
    Type Description
    double

    This property takes double value.

    IconType

    Gets or sets the icon type in legend.

    Declaration
    public ShapeType IconType { get; }
    Property Value
    Type
    ShapeType

    IconWidth

    Gets or sets the width of the legend icon.

    Declaration
    public double IconWidth { get; set; }
    Property Value
    Type Description
    double

    This property takes double value.

    Index

    Gets the corresponding index for legend item.

    Declaration
    public int Index { get; }
    Property Value
    Type
    int

    IsIconVisible

    Gets or sets a value indicating whether to display the legend icon.

    Declaration
    public bool IsIconVisible { get; set; }
    Property Value
    Type
    bool

    IsToggled

    Gets or sets a value indicating whether the legend item is toggled or not.

    Declaration
    public bool IsToggled { get; set; }
    Property Value
    Type
    bool

    Item

    Gets the corresponding data point for series.

    Declaration
    public object? Item { get; }
    Property Value
    Type
    object

    Source

    Gets the origin of the legend item.

    Declaration
    public object? Source { get; }
    Property Value
    Type
    object

    Text

    Gets or sets the corresponding label for legend item.

    Declaration
    public string Text { get; set; }
    Property Value
    Type
    string

    TextColor

    Gets or sets the corresponding text color for legend item.

    Declaration
    public Color TextColor { get; }
    Property Value
    Type
    Color

    TextMargin

    Gets or sets the margin of the legend text.

    Declaration
    public Thickness TextMargin { get; }
    Property Value
    Type
    Thickness

    Events

    PropertyChanged

    Occurs when a property value changes.

    Declaration
    public event PropertyChangedEventHandler? PropertyChanged
    Event Type
    Type
    PropertyChangedEventHandler

    Implements

    INotifyPropertyChanged
    ILegendItem
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved