LegendItem Constructor (String, Color, String)

.NET Framework (current version)
 

Initializes a new instance of the LegendItem class with the specified name, color and image path.

Namespace:   System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public LegendItem(
	string name,
	Color color,
	string image
)

Parameters

name
Type: System.String

The name of the legend item.

color
Type: System.Drawing.Color

The color of the legend item.

image
Type: System.String

The path of the image to be displayed for the legend item.

Only the image or color parameter needs to be specified. If both are specified, the image parameter has precedence.

.NET Framework
Available since 4.0
Return to top
Show: