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

.NET Framework (current version)
 

Adds a custom label to the collection, using the given axis range, text, row index and marking style.

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

public CustomLabel Add(
	double fromPosition,
	double toPosition,
	string text,
	int rowIndex,
	LabelMarkStyle markStyle
)

Parameters

fromPosition
Type: System.Double

The minimum value of the axis range the label is applied to.

toPosition
Type: System.Double

The maximum value of the axis range the label is applied to.

text
Type: System.String

The label text.

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.

Return Value

Type: System.Web.UI.DataVisualization.Charting.CustomLabel

The newly added CustomLabel object.

.NET Framework
Available since 4.0
Return to top
Show: