ComponentOne Chart for .NET (2.0) Search HelpCentral 

ChartCoordArray.Item Property

Gets or sets the value of the data element by index.

[Visual Basic]

Overridable Public Default Property Item( _

ByVal index As Integer _

) As Object Implements IList.Item

[C#]

virtual public object this[

int index

] {get;set;}

[Delphi]

public property Item[

index: Int32

]: Object read get_Item write set_Item;

Implements

IList.Item

Remarks

This property can be used to access a specific data entry by numerical index. In Visual Basic, no casting is required. In C#, it is necessary to cast the return value to the appropriate type. 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.

Acceptable input data types include Single, Double, Integer, Int16, Int64, Decimal and DateTime (VB) and float, double, int, Int16, Int64, decimal and DateTime (C#). When PointData is managed by the ChartCoordArray, PointF objects may also be used.

Note that the index must be between 0 and the Length of the array inclusive.

See Also

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


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