Dundas Chart for Windows Forms
Insert(Int32,Color,String) Method
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > LegendItemsCollection Class > Insert Method : Insert(Int32,Color,String) Method


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.

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.

Syntax

Visual Basic (Declaration)  
Public Overloads Sub Insert( _
   ByVal index As Integer, _
   ByVal color As Color, _
   ByVal text As String _
) 
Visual Basic (Usage) Copy Code
Dim instance As LegendItemsCollection
Dim index As Integer
Dim color As Color
Dim text As String
 
instance.Insert(index, color, text)
C#  
public void Insert( 
   int index,
   Color color,
   string text
)

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.

Remarks

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.

Requirements

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

See Also

© 2009 All Rights Reserved.