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.
Assembly: System.Web.DataVisualization (in System.Web.DataVisualization.dll)
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
Available since 4.0
Show: