2D Chart for WinForms | ComponentOne
C1.Win.C1Chart.4.8 Assembly / C1.Win.C1Chart Namespace / ChartDataArray Class / Item Property

In This Topic
    Item Property (ChartDataArray)
    In This Topic
    Gets or sets the value of the data element by index.
    Syntax
    'Declaration
     
    Public Default Property Item( _
       ByVal index As System.Integer _
    ) As System.Object
    public System.object this[ 
       System.int index
    ]; {get; set;}

    Parameters

    index
    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.

    See Also