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
Inherited Members
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 |
|
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 |