LegendItemsCollection.Insert Method (Int32, String, String)
.NET Framework (current version)
Inserts a LegendItem object with the specified text and symbol image into the collection at the specified location.
Assembly: System.Web.DataVisualization (in System.Web.DataVisualization.dll)
Parameters
- index
-
Type:
System.Int32
The location in the zero-based index where the LegendItem object is to be inserted.
- image
-
Type:
System.String
The absolute or relative URL of the image file to be used for the legend item symbol.
- text
-
Type:
System.String
The legend item text.
Inserts a custom legend item into the collection at the specified location using the specified text and image for the symbol.
To insert a legend item that uses a color for its symbol, use the Insert method.
Use the Add method to append a LegendItem object with a symbol image to the end if the collection.
.NET Framework
Available since 4.0
Available since 4.0
Show: