Inserts a LegendItem object that uses an image for its symbol into the collection at the specified location.
Insert one legend item into the collection.
Visual Basic (Declaration) | |
---|---|
Public Overloads Sub Insert( _ ByVal index As Integer, _ ByVal image As String, _ ByVal text As String _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
- index
-
The location where the LegendItem object is to be inserted (0-based).
Legend item index to insert at. - image
-
An absolute or relative URL that specifies the image file to be used for the item's symbol.
Legend item image. - text
-
The legend item text.
Legend item text.
Return Value
Index of newly added item.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 other definition of the Insert Method.
To append a LegendItem object to the end if the collection use the Add method.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family