CustomLabelsCollection.Add Method (Double, DateTimeIntervalType, String)

.NET Framework (current version)
 

Adds multiple DateTimeCustomLabelsCollection objects to the collection. Populates the entire first row of an axis with labels with the specified format.

Namespace:   System.Web.UI.DataVisualization.Charting
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.

System_CAPS_noteNote

The RecalculateAxesScale method must be called prior to calling this particular method definition.

.NET Framework
Available since 4.0
Return to top
Show: