Dundas Chart for ASP.NET
Insert(Int32,String,String) Method
See Also  Send comments on this topic.
Dundas.Charting.WebControl Namespace > LegendItemsCollection Class > Insert Method : Insert(Int32,String,String) Method


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.

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.

Syntax

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

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.

Remarks

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.

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

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.