Class ChartLegendItemClickEventArgs
Event argument that is to be used with ChartLegend.FilterItems event. This event is raised before the legend items are rendered. This can be used to remove any item conditionally.
Inheritance
System.Object
System.EventArgs
ChartLegendItemClickEventArgs
Inherited Members
System.EventArgs.Empty
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Base.dll
Syntax
public class ChartLegendItemClickEventArgs : EventArgs
Constructors
ChartLegendItemClickEventArgs(ChartLegendItem, Int32, Int32)
Initializes a new instance of the ChartLegendItemClickEventArgs class.
Declaration
public ChartLegendItemClickEventArgs(ChartLegendItem item, int index, int legendIndex)
Parameters
Type | Name | Description |
---|---|---|
ChartLegendItem | item | Legend item that was clicked. |
System.Int32 | index | |
System.Int32 | legendIndex |
Properties
Index
Gets the index of legend item.
Declaration
public int Index { get; }
Property Value
Type |
---|
System.Int32 |
Item
Gets or sets the legend item.
Declaration
public ChartLegendItem Item { get; set; }
Property Value
Type |
---|
ChartLegendItem |
LegendIndex
Gets the index of legend in Chart Legends collection.
Declaration
public int LegendIndex { get; }
Property Value
Type |
---|
System.Int32 |