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 );
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also