ComponentOne Chart for .NET (2.0) Search HelpCentral 

ChartDataArray.CopyDataIn Method

Copies data into the ChartDataArray, replacing all existing data.

[Visual Basic]

Public Function CopyDataIn( _

ByVal o As Object _

) As Boolean

[C#]

public bool CopyDataIn(

object o

);

[Delphi]

public function CopyDataIn(

o: Object

): Boolean;

Parameters

o

An object representing the data copied into the ChartCoordArray.

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

ChartDataArray Class | ChartDataArray Members | C1.Win.C1Chart Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.