Dundas Chart for ASP.NET
AddVerticalLine Method
See Also  Send comments on this topic.
Dundas.Charting.WebControl Namespace > AnnotationCollection Class : AddVerticalLine 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.
x
X coordinate of the line.
X coordinate of the line.
y1
Y coordinate of the first line point.
Y coordinate of the first line point.
y2
Y coordinate of the second line point.
Y coordinate of the second line point.
Enterprise Only Feature. Adds a new vertical line annotation to the end of the collection.
Adds a new vertical line annotation to the end of the collection.

Syntax

Visual Basic (Declaration)  
Public Function AddVerticalLine( _
   ByVal name As String, _
   ByVal x As Double, _
   ByVal y1 As Double, _
   ByVal y2 As Double _
) As Integer
Visual Basic (Usage) Copy Code
Dim instance As AnnotationCollection
Dim name As String
Dim x As Double
Dim y1 As Double
Dim y2 As Double
Dim value As Integer
 
value = instance.AddVerticalLine(name, x, y1, y2)
C#  
public int AddVerticalLine( 
   string name,
   double x,
   double y1,
   double y2
)

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.
x
X coordinate of the line.
X coordinate of the line.
y1
Y coordinate of the first line point.
Y coordinate of the first line point.
y2
Y coordinate of the second line point.
Y coordinate of the second line point.

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

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