[]
        
(Showing Draft Content)

C1.Win.C1Chart.ChartDataArray.Item

this Property

this[int]

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

Declaration
public object this[int index] { get; set; }
Parameters
Type Name Description
int index
Implements
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 ChartDataArray, PointF objects may also be used.

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