CustomLabelsCollection.Add Method (Double, DateTimeIntervalType, String, Int32, LabelMarkStyle)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Adds multiple custom labels to the collection. The labels will be DateTime labels with the specified interval type, text format, row index and marking style.

Namespace:   System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public void Add(
	double labelsStep,
	DateTimeIntervalType intervalType,
	string format,
	int rowIndex,
	LabelMarkStyle markStyle
)

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

The label text format.

rowIndex
Type: System.Int32

The label row index.

markStyle
Type: System.Web.UI.DataVisualization.Charting.LabelMarkStyle

A T:System.Web.UI.DataVisualization.Charting.LabelMarkstyle enumeration value that specifies the tick mark style used for the label.

.NET Framework
Available since 4.0
Return to top
Show: