2D Chart for WinForms | ComponentOne
C1.Win.C1Chart.4.8 Assembly / C1.Win.C1Chart Namespace / ChartDataArray Class / Add Method
New data value.

In This Topic
    Add Method (ChartDataArray)
    In This Topic
    Adds a new value to the end of the ChartArrayArray.
    Syntax
    'Declaration
     
    Public Function Add( _
       ByVal value As System.Object _
    ) As System.Integer
    public System.int Add( 
       System.object value
    )

    Parameters

    value
    New data value.

    Return Value

    An integer indicating the index of the new value in the ChartDataArray. The new index is always the Length of the ChartDataArray prior to adding the new value.
    Remarks
    The Add method extends the length of the ChartDataArray by one, then adds the new value to the newly created element. The value is automatically converted to the internal storage data type.
    See Also