Inserts a LegendItem object that uses a color 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 color As Color, _ 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. - color
-
The symbol color of the legend item.
Legend item color. - 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 symbol color.
To insert a legend item that uses an image 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