menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class LegendClickEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class LegendClickEventArgs

    Specifies the event arguments available for the legend item click events in the chart component.

    Inheritance
    System.Object
    Syncfusion.Blazor.Charts.BaseEventArgs
    LegendClickEventArgs
    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class LegendClickEventArgs : BaseEventArgs

    Properties

    Chart

    Defines the instance of the chart.

    Declaration
    public SfChart Chart { get; }
    Property Value
    Type Description
    SfChart

    A SfChart object that represents the instance of the chart.

    Remarks

    This read-only property provides access to the chart component that generated the legend click event.

    LegendShape

    Defines the Legend shape.

    Declaration
    public LegendShape LegendShape { get; set; }
    Property Value
    Type Description
    LegendShape

    A LegendShape value that defines the shape of the legend.

    Remarks

    Provides useful visual information regarding the legend item's appearance that was clicked.

    LegendText

    Defines the current legend text.

    Declaration
    public string LegendText { get; }
    Property Value
    Type Description
    System.String

    Accepts the string value.

    Remarks

    Allows users to programmatically access the text label displayed on the legend item click.

    Series

    Defines the current series.

    Declaration
    public ChartSeries Series { get; }
    Property Value
    Type Description
    ChartSeries

    A ChartSeries object that represents the current series.

    Remarks

    This read-only property can be used to retrieve the series associated with the legend item click.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved