Nevron .NET Vision
Nevron.Chart Namespace / NIndexedDataSeries Class / Add Method
the index of the data point
The actual data point value. If this parameter is null or DBNull.Value, the item is not added to the data series.


In This Topic
    Add Method (NIndexedDataSeries)
    In This Topic
    Adds an item (key-value pair) to the data series.
    Syntax
    'Declaration
     
    
    Public Sub Add( _
       ByVal key As System.Integer, _
       ByVal value As System.Object _
    ) 
    'Usage
     
    
    Dim instance As NIndexedDataSeries
    Dim key As System.Integer
    Dim value As System.Object
     
    instance.Add(key, value)
    public void Add( 
       System.int key,
       System.object value
    )

    Parameters

    key
    the index of the data point
    value
    The actual data point value. If this parameter is null or DBNull.Value, the item is not added to the data series.
    Remarks
    You can use this method instead of the indexer in case you have to add multiple data items one after another. This method is faster, but is not as safe as the indexer. You have to make sure that the key parameter that you pass is unique within the collection.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also