Dundas Chart for Windows Forms
AddImage Method
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > AnnotationCollection Class : AddImage Method


name
Name of the annotation. Use an empty string to automatically assign a unique name.
Name of the annotation. Use an empty string to automatically assign a unique name.
image
Image name.
Image name.
x
X coordinate of the annotation.
X coordinate of the annotation.
y
Y coordinate of the annotation.
Y coordinate of the annotation.
width
Width of the annotation.
Width of the annotation.
height
Height of the annotation.
Height of the annotation.
Enterprise Only Feature. Adds a new image annotation to the end of the collection.
Adds a new image annotation to the end of the collection.

Syntax

Visual Basic (Declaration)  
Public Function AddImage( _
   ByVal name As String, _
   ByVal image As String, _
   ByVal x As Double, _
   ByVal y As Double, _
   ByVal width As Double, _
   ByVal height As Double _
) As Integer
Visual Basic (Usage) Copy Code
Dim instance As AnnotationCollection
Dim name As String
Dim image As String
Dim x As Double
Dim y As Double
Dim width As Double
Dim height As Double
Dim value As Integer
 
value = instance.AddImage(name, image, x, y, width, height)
C#  
public int AddImage( 
   string name,
   string image,
   double x,
   double y,
   double width,
   double height
)

Parameters

name
Name of the annotation. Use an empty string to automatically assign a unique name.
Name of the annotation. Use an empty string to automatically assign a unique name.
image
Image name.
Image name.
x
X coordinate of the annotation.
X coordinate of the annotation.
y
Y coordinate of the annotation.
Y coordinate of the annotation.
width
Width of the annotation.
Width of the annotation.
height
Height of the annotation.
Height of the annotation.

Return Value

Index of the added object.


Index of the added object.

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.