Class
SeriesCollection<T>

Strongly typed series collection for a specific series kind, with helpers to create and manage items.

Definition

Namespace:Telerik.Windows.Documents.Model.Drawing.Charts

Assembly:Telerik.Windows.Documents.Core.dll

Type Parameters:

T

The type of series the collection holds.

Syntax:

cs-api-definition
public class SeriesCollection<T> : SeriesCollection, IEnumerable where T : SeriesBase

Inheritance: objectSeriesCollectionSeriesCollection<T>

Implements: IEnumerable

Inherited Members SeriesCollection.Add(SeriesBase)SeriesCollection.Remove(SeriesBase)

Methods

Add()

Create a new series of type T, add it to the collection, and return it.

Declaration

cs-api-definition
public T Add()

Returns

T

The new series object.

Add(IChartData, IChartData, Title)

Create and add a category-based series using categories and values, and return the T instance.

Declaration

cs-api-definition
public T Add(IChartData categoriesData, IChartData valuesData, Title title = null)

Parameters

categoriesData

IChartData

The data for the categories of the series.

valuesData

IChartData

The data for the values of the series.

title

Title

The title of the series.

Returns

T

The new series object.

AddBubble(IChartData, IChartData, IChartData, Title)

Create and add a bubble-capable series using X, Y, and size data, and return the T instance.

Declaration

cs-api-definition
public T AddBubble(IChartData xValuesData, IChartData yValuesData, IChartData bubbleSizesData, Title title = null)

Parameters

xValuesData

IChartData

The data for the X values of the series.

yValuesData

IChartData

The data for the Y values of the series.

bubbleSizesData

IChartData

The data for the bubble size values of the series.

title

Title

The title of the series.

Returns

T

The new series object.

AddScatter(IChartData, IChartData, Title)

Create and add a scatter-capable series using X and Y data, and return the T instance.

Declaration

cs-api-definition
public T AddScatter(IChartData xValuesData, IChartData yValuesData, Title title = null)

Parameters

xValuesData

IChartData

The data for the X values of the series.

yValuesData

IChartData

The data for the Y values of the series.

title

Title

The title of the series.

Returns

T

The new series object.

GetEnumerator()

Enumerate the series as the concrete type T.

Declaration

cs-api-definition
public IEnumerator<T> GetEnumerator()

Returns

IEnumerator<T>

Remove(T)

Remove the specified series from the collection if present.

Declaration

cs-api-definition
public void Remove(T series)

Parameters

series

T

The series to be removed.