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


fromPosition
The beginning of the axis range the label applies to.

From property of the CustomLabel object. The beginning of the axis range the label applies to (e.g. 1.5).


From position.
toPosition
The end of the axis range the label applies to.

To property of the CustomLabel object. The end of the axis range the label applies to (e.g. 2.5).


To position.
text

Text property of the CustomLabel object. The label text.


Label text.
row

Row property of the CustomLabel object. The row the label is for.


Label row.
mark

LabelMark property of the CustomLabel object. Label mark, if specified.


Label mark.

Creates and initializes a new instance of the CustomLabel class.


Custom label constructor

Syntax

Visual Basic (Declaration)  
Public Function New( _
   ByVal fromPosition As Double, _
   ByVal toPosition As Double, _
   ByVal text As String, _
   ByVal row As LabelRow, _
   ByVal mark As LabelMark _
)
Visual Basic (Usage) Copy Code
Dim fromPosition As Double
Dim toPosition As Double
Dim text As String
Dim row As LabelRow
Dim mark As LabelMark
 
Dim instance As CustomLabel(fromPosition, toPosition, text, row, mark)
C#  
public CustomLabel( 
   double fromPosition,
   double toPosition,
   string text,
   LabelRow row,
   LabelMark mark
)

Parameters

fromPosition
The beginning of the axis range the label applies to.

From property of the CustomLabel object. The beginning of the axis range the label applies to (e.g. 1.5).


From position.
toPosition
The end of the axis range the label applies to.

To property of the CustomLabel object. The end of the axis range the label applies to (e.g. 2.5).


To position.
text

Text property of the CustomLabel object. The label text.


Label text.
row

Row property of the CustomLabel object. The row the label is for.


Label row.
mark

LabelMark property of the CustomLabel object. Label mark, if specified.


Label mark.

Remarks

This constructor can be used to create and initialize a new instance of the CustomLabel class. The arguments are used to set the CustomLabel object's properties.

However, we recommend adding custom labels using the CustomLabels collection property's Add method.

Note that the To and From properties determine the axis range the label is applied, and should not be set to the same value.

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.