menu

WinForms

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

    Show / Hide Table of Contents

    Class ChartLegendDrawItemEventArgs

    Delegate that is to be used with ChartLegend.DrawItem event. This event is fired when a legend item needs to draw. Handle this event to change the drawing of items.

    Inheritance
    System.Object
    System.EventArgs
    ChartLegendDrawItemEventArgs
    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 ChartLegendDrawItemEventArgs : EventArgs

    Constructors

    ChartLegendDrawItemEventArgs(Graphics, ChartLegendItem, Point, Int32)

    Constructor.

    Declaration
    public ChartLegendDrawItemEventArgs(Graphics g, ChartLegendItem item, Point loc, int index)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    Graphics object.

    ChartLegendItem item

    Legend item to be rendered.

    System.Drawing.Point loc

    Location of the legend item.

    System.Int32 index

    Index value of the legend item being rendered.

    ChartLegendDrawItemEventArgs(Graphics, ChartLegendItem, Rectangle, Int32)

    Constructor.

    Declaration
    public ChartLegendDrawItemEventArgs(Graphics g, ChartLegendItem item, Rectangle bounds, int index)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    Graphics object.

    ChartLegendItem item

    Legend item to be rendered.

    System.Drawing.Rectangle bounds

    Bounds of the legend item.

    System.Int32 index

    Index value of the legend item being rendered.

    Properties

    Bounds

    Gets or sets the bounds of the item.

    Declaration
    public Rectangle Bounds { get; set; }
    Property Value
    Type
    System.Drawing.Rectangle

    Graphics

    Gets the graphics to draw the legend.

    Declaration
    public Graphics Graphics { get; }
    Property Value
    Type Description
    System.Drawing.Graphics

    The graphics.

    Handled

    Gets or sets a value indicating whether this ChartLegendDrawItemEventArgs is handled.

    Declaration
    public bool Handled { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if handled; otherwise, false.

    Index

    Gets the index.

    Declaration
    public int Index { get; }
    Property Value
    Type Description
    System.Int32

    The index.

    LegendItem

    Gets the legend item.

    Declaration
    public ChartLegendItem LegendItem { get; }
    Property Value
    Type Description
    ChartLegendItem

    The legend item.

    Location

    Gets or sets the location of the item.

    Declaration
    public Point Location { get; set; }
    Property Value
    Type
    System.Drawing.Point

    Size

    Gets or sets the size of the item.

    Declaration
    public Size Size { get; set; }
    Property Value
    Type
    System.Drawing.Size
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved