2D Chart for WinForms | ComponentOne
C1.Win.C1Chart.4.5.2 Assembly / C1.Win.C1Chart Namespace / ValueLabelsCollection Class / Add Method / Add(Object,String) Method
The val parameter specifies the value of the axis to be replaced.
The text parameter specifies the string that will replace the axis value annotation.

In This Topic
    Add(Object,String) Method
    In This Topic
    Adds new label and accepts initialization parameters.
    Syntax
    'Declaration
     
    Public Overloads Function Add( _
       ByVal val As System.Object, _
       ByVal text As System.String _
    ) As System.Integer
    public System.int Add( 
       System.object val,
       System.string text
    )

    Parameters

    val
    The val parameter specifies the value of the axis to be replaced.
    text
    The text parameter specifies the string that will replace the axis value annotation.

    Return Value

    The index of new label.
    See Also