Xceed Workbooks for .NET v3.0 Documentation
Xceed.Workbooks.NET Assembly / Xceed.Workbooks.NET Namespace / SeriesCollection Class / AddFromValues<T> Method
The type of Series that will be added to the SeriesCollection.
The values that will be used to create the new Series.
Example


In This Topic
    AddFromValues<T> Method
    In This Topic
    Adds a Series of type T to the SeriesCollection, using values to create said Series.
    Syntax
    'Declaration
     
    
    Public Function AddFromValues(Of T As {New, Series})( _
       ByVal ParamArray values() As Object _
    ) As T
    'Usage
     
    
    Dim instance As SeriesCollection
    Dim values() As Object
    Dim value As T
     
    value = instance.AddFromValues(Of T)(values)
    public T AddFromValues<T>( 
       params object[] values
    )
    where T: new(), Series

    Parameters

    values
    The values that will be used to create the new Series.

    Type Parameters

    T
    The type of Series that will be added to the SeriesCollection.

    Return Value

    The Series of type T that has been added to the SeriesCollection.   
    Remarks
    All of the given values must be of the same type.
    Example
    // Adds a PieSeries to the Pie3DChart by specifying its values.
     var pieSeries = pie3DChart.SeriesCollection. AddFromValues <PieSeries>( 12, 24, 33, 9, 55 , 37 );
    Requirements

    Target Platforms: Windows 11, Windows 10, 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