Dundas.SharePoint.Charting.WebParts Send comments on this topic.
Add(Color,String) Method
See Also 
Dundas.Charting.WebControl Namespace > LegendItemsCollection Class > Add Method : Add(Color,String) Method


color
Legend item color.
text
Legend item text.
Adds one legend item into the collection.

Syntax

Visual Basic (Declaration)  
Public Overloads Function Add( _
   ByVal color As Color, _
   ByVal text As String _
) As Integer
Visual Basic (Usage) Copy Code
Dim instance As LegendItemsCollection
Dim color As Color
Dim text As String
Dim value As Integer
 
value = instance.Add(color, text)
C#  
public int Add( 
   Color color,
   string text
)

Parameters

color
Legend item color.
text
Legend item text.

Return Value

Index of newly added item.

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