Dundas.SharePoint.Charting.WebParts Send comments on this topic.
AddHorizontalLine Method
See Also 
Dundas.Charting.WebControl Namespace > AnnotationCollection Class : AddHorizontalLine Method


name
Name of the annotation. Use an empty string to automatically assign a unique name.
y
Y coordinate of the line.
x1
X coordinate of the first line point.
x2
X coordinate of the second line point.
Adds a new horizontal line annotation to the end of the collection.

Syntax

Visual Basic (Declaration)  
Public Function AddHorizontalLine( _
   ByVal name As String, _
   ByVal y As Double, _
   ByVal x1 As Double, _
   ByVal x2 As Double _
) As Integer
Visual Basic (Usage) Copy Code
Dim instance As AnnotationCollection
Dim name As String
Dim y As Double
Dim x1 As Double
Dim x2 As Double
Dim value As Integer
 
value = instance.AddHorizontalLine(name, y, x1, x2)
C#  
public int AddHorizontalLine( 
   string name,
   double y,
   double x1,
   double x2
)

Parameters

name
Name of the annotation. Use an empty string to automatically assign a unique name.
y
Y coordinate of the line.
x1
X coordinate of the first line point.
x2
X coordinate of the second line point.

Return Value

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