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


labelsStep
The interval that custom labels will be drawn at.
The interval that custom labels will be drawn at.
Label step size.
intervalType
A DateTimeIntervalType enumeration value, which determines the interval type.
Label step type.

Adds multiple DateTime CustomLabel objects to the collection. Populates an axis' entire first row with labels.


Adds custom labels into the collection using min and max values and step.

Syntax

Visual Basic (Declaration)  
Public Overloads Sub Add( _
   ByVal labelsStep As Double, _
   ByVal intervalType As DateTimeIntervalType _
) 
Visual Basic (Usage) Copy Code
Dim instance As CustomLabelsCollection
Dim labelsStep As Double
Dim intervalType As DateTimeIntervalType
 
instance.Add(labelsStep, intervalType)
C#  
public void Add( 
   double labelsStep,
   DateTimeIntervalType intervalType
)

Parameters

labelsStep
The interval that custom labels will be drawn at.
The interval that custom labels will be drawn at.
Label step size.
intervalType
A DateTimeIntervalType enumeration value, which determines the interval type.
Label step type.

Remarks

This method will create and initialize CustomLabel objects for an axis' entire first label row with DateTime labels of the specified type.

The step determines how often the custom labels will be drawn.

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

© 2009 All Rights Reserved.