2D Chart for WinForms | ComponentOne
C1.Win.C1Chart.4.5.2 Assembly / C1.Win.C1Chart Namespace / ChartDataArray Class / CopyDataIn Method

In This Topic
    CopyDataIn Method (ChartDataArray)
    In This Topic
    Copies data into the ChartDataArray, replacing all existing data.
    Syntax
    'Declaration
     
    Public Function CopyDataIn( _
       ByVal o As System.Object _
    ) As System.Boolean
    public System.bool CopyDataIn( 
       System.object o
    )

    Parameters

    o

    Return Value

    A Boolean value indicating whether the data was appropriately copied into the ChartDataArray.
    Remarks

    Although the passed DataArray is an object, the underlying data type must be an array of type Single, Double, Integer, Int16, Int64, Decimal or DateTime (VB) or float, double, int, Int16, Int64, decimal or DateTime (C#). An array of objects is not accepted. When PointData is managed by the ChartDataArray, an array PointF objects may also be passed.

    Note that all values are stored as a Double(VB) or double(C#) data type internally. Data conversions are performed automatically and as appropriate for the inputted data type. For example, setting a data element to a DateTime value of January 1, 2002 will be stored internally as an Ole date, then converted to a Double/double with a result of 37257.

    Additionally, the length of the copied array defines the length of the ChartDataArray, and the Length property will report the new value.

    See Also