Dundas Chart for Windows Forms
Add(Double,Double,String,LabelRow,LabelMark,GridTick) Method
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > CustomLabelsCollection Class > Add Method : Add(Double,Double,String,LabelRow,LabelMark,GridTick) Method


fromPosition
The minimum value of the axis range the label is applied to.
Label left position.
toPosition
The maximum value of the axis range the label is applied to.
Label right position.
text
The label text.
Label text.
row
Label row.
Label row.
mark
A LabelMark enumeration value that determines the label mark to be used, if any.
Label marking type.
gridTick
Custom grid line and/or tick marks flag.
Custom grid line or/and tick marks flag.

Adds one CustomLabel object to the collection. Uses the given axis range and label text, and is displayed for the specified row using the given label mark, grid lines and tick marks.


Adds one custom label into the collection.

Syntax

Visual Basic (Declaration)  
Public Overloads Function Add( _
   ByVal fromPosition As Double, _
   ByVal toPosition As Double, _
   ByVal text As String, _
   ByVal row As LabelRow, _
   ByVal mark As LabelMark, _
   ByVal gridTick As GridTick _
) As Integer
Visual Basic (Usage) Copy Code
Dim instance As CustomLabelsCollection
Dim fromPosition As Double
Dim toPosition As Double
Dim text As String
Dim row As LabelRow
Dim mark As LabelMark
Dim gridTick As GridTick
Dim value As Integer
 
value = instance.Add(fromPosition, toPosition, text, row, mark, gridTick)
C#  
public int Add( 
   double fromPosition,
   double toPosition,
   string text,
   LabelRow row,
   LabelMark mark,
   GridTick gridTick
)

Parameters

fromPosition
The minimum value of the axis range the label is applied to.
Label left position.
toPosition
The maximum value of the axis range the label is applied to.
Label right position.
text
The label text.
Label text.
row
Label row.
Label row.
mark
A LabelMark enumeration value that determines the label mark to be used, if any.
Label marking type.
gridTick
Custom grid line and/or tick marks flag.
Custom grid line or/and tick marks flag.

Return Value

Index of newly added item.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2009 All Rights Reserved.