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.
Assembly: System.Web.DataVisualization (in System.Web.DataVisualization.dll)
member Add : fromPosition:float * toPosition:float * text:string * rowIndex:int * markStyle:LabelMarkStyle -> CustomLabel
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.CustomLabelThe newly added CustomLabel object.
.NET Framework
Available since 4.0
Available since 4.0
Show: