Dundas Chart for ASP.NET
Add(Double,Double,String) Method
See Also  Send comments on this topic.
Dundas.Charting.WebControl Namespace > CustomLabelsCollection Class > Add Method : Add(Double,Double,String) Method


fromPosition
The minimum value of the axis range the label is applied to.
The minimum value of the axis range the label is applied to.
Label left position.
toPosition
The maximum value of the axis range the label is applied to.
The maximum value of the axis range the label is applied to.
Label right position.
text
The label text.
Label text.

Adds one CustomLabel object to the collection, using the given axis range and text.


Adds one custom label into the collection.

Syntax

Visual Basic (Declaration)  
Public Overloads Function Add( _
   ByVal fromPosition As Double, _
   ByVal toPosition As Double, _
   ByVal text As String _
) As Integer
Visual Basic (Usage) Copy Code
Dim instance As CustomLabelsCollection
Dim fromPosition As Double
Dim toPosition As Double
Dim text As String
Dim value As Integer
 
value = instance.Add(fromPosition, toPosition, text)
C#  
public int Add( 
   double fromPosition,
   double toPosition,
   string text
)

Parameters

fromPosition
The minimum value of the axis range the label is applied to.
The minimum value of the axis range the label is applied to.
Label left position.
toPosition
The maximum value of the axis range the label is applied to.
The maximum value of the axis range the label is applied to.
Label right position.
text
The label text.
Label text.

Return Value

Index of newly added item.

Remarks

Adds one custom label to the relevant axis' first label row. No label mark is used.

If a custom label is used anywhere in the first label row then no labels are automatically generated for that first row.

NOTE: The ChartArea.Recalc method must be called prior to calling this particular method definition .

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.