Dundas Chart for Windows Forms
Add(NamedImage) Method
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > NamedImagesCollection Class > Add Method : Add(NamedImage) Method


img

An object derived from the .NET Image class (e.g. BitMap class).


Named Image object

Adds a NamedImage object to the end of the collection, taking the associated image as a parameter.


Add NamedImage object into the collection

Syntax

Visual Basic (Declaration)  
Public Overloads Function Add( _
   ByVal img As NamedImage _
) As Integer
Visual Basic (Usage) Copy Code
Dim instance As NamedImagesCollection
Dim img As NamedImage
Dim value As Integer
 
value = instance.Add(img)
C#  
public int Add( 
   NamedImage img
)

Parameters

img

An object derived from the .NET Image class (e.g. BitMap class).


Named Image object

Return Value

Returns an integer that represents the index where the item was inserted into the collection (0-based).


The ArrayList index at which the value has been added.

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.