Dundas Chart for Windows Forms
Add(Double,DateTimeIntervalType,Double,Double,String,LabelRow,LabelMark) Method
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > CustomLabelsCollection Class > Add Method : Add(Double,DateTimeIntervalType,Double,Double,String,LabelRow,LabelMark) 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.
min
Determines the minimum value of the range for which custom labels will be drawn.
Min position.
max
Determines the maximum value of the range for which custom labels will be drawn.
Max position.
format
A value that determines the formatting of the custom labels. See the Date and Time Format Strings topic in the MSDN library for further details.
Label text format.
row
A LabelRow enumeration value that determines the label row the custom labels are used for.
Label row.
mark
A LabelMark enumeration value that determines the label marks to be used, if any.
Label marking type.

Adds multiple DateTime CustomLabel objects to the collection, and populates an axis with custom labels for the given axis range and label row.


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, _
   ByVal min As Double, _
   ByVal max As Double, _
   ByVal format As String, _
   ByVal row As LabelRow, _
   ByVal mark As LabelMark _
) 
Visual Basic (Usage) Copy Code
Dim instance As CustomLabelsCollection
Dim labelsStep As Double
Dim intervalType As DateTimeIntervalType
Dim min As Double
Dim max As Double
Dim format As String
Dim row As LabelRow
Dim mark As LabelMark
 
instance.Add(labelsStep, intervalType, min, max, format, row, mark)
C#  
public void Add( 
   double labelsStep,
   DateTimeIntervalType intervalType,
   double min,
   double max,
   string format,
   LabelRow row,
   LabelMark mark
)

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.
min
Determines the minimum value of the range for which custom labels will be drawn.
Min position.
max
Determines the maximum value of the range for which custom labels will be drawn.
Max position.
format
A value that determines the formatting of the custom labels. See the Date and Time Format Strings topic in the MSDN library for further details.
Label text format.
row
A LabelRow enumeration value that determines the label row the custom labels are used for.
Label row.
mark
A LabelMark enumeration value that determines the label marks to be used, if any.
Label marking type.

Remarks

This method will create and initialize CustomLabel objects for an axis. The labels will be DateTime labels with the specified interval type, and will be generated for the axis range that is determined by the min and max arguments.

The step determines how often the custom labels will be drawn, while the LabelRow argument determines which label row is populated.

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.