ComponentOne Chart for .NET (2.0) Search HelpCentral 

ChartCoordArray.CopyDataIn Method

Copies data into the ChartCoordArray, 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 ChartCoordArray.

Remarks

Although the passed data array 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 ChartCoordArray, 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 ChartCoordArray, and the Length property will report the new value.

See Also

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


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