CustomLabelsCollection.Add Method (Double, DateTimeIntervalType, String)
Adds multiple DateTimeCustomLabelsCollection objects to the collection. Populates the entire first row of an axis with labels with the specified format.
Assembly: System.Web.DataVisualization (in System.Web.DataVisualization.dll)
Public Sub Add ( labelsStep As Double, intervalType As DateTimeIntervalType, format As String )
Parameters
- labelsStep
-
Type:
System.Double
A Double value that determines how often the custom labels will be drawn.
- intervalType
-
Type:
System.Web.UI.DataVisualization.Charting.DateTimeIntervalType
A DateTimeIntervalType enumeration value that determines the unit of measure for the labelsStep parameter.
- format
-
Type:
System.String
A value that determines the format of the custom label. For more information, see Date and Time Format Strings.
This method creates and initializes 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, and optional label formatting can be specified as well.
Note |
|---|
The RecalculateAxesScale method must be called prior to calling this particular method definition. |
Available since 4.0
