New to Telerik Document ProcessingStart a free 30-day trial

Collection of chart shapes in a worksheet, providing methods to add and manage data-driven charts.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

C#
public class ChartCollection : FilteredShapeCollection<FloatingChartShape>, IEnumerable<FloatingChartShape>, IEnumerable

Inheritance: objectFilteredShapeCollection<FloatingChartShape>ChartCollection

Implements: IEnumerableIEnumerable<FloatingChartShape>

Inherited Members FilteredShapeCollection<FloatingChartShape>.Remove(FloatingChartShape)FilteredShapeCollection<FloatingChartShape>.Contains(FloatingChartShape)FilteredShapeCollection<FloatingChartShape>.IndexOf(FloatingChartShape)FilteredShapeCollection<FloatingChartShape>.Clear()FilteredShapeCollection<FloatingChartShape>.GetEnumerator()FilteredShapeCollection<FloatingChartShape>.GetZIndex(FloatingChartShape)FilteredShapeCollection<FloatingChartShape>.Add(FloatingChartShape)FilteredShapeCollection<FloatingChartShape>.OnItemAdding(FloatingChartShape, out ShapeCollectionChangingEventArgs<FloatingChartShape>)FilteredShapeCollection<FloatingChartShape>.OnItemRemoving(FloatingChartShape, out ShapeCollectionChangingEventArgs<FloatingChartShape>)FilteredShapeCollection<FloatingChartShape>.OnChanging(ShapeCollectionChangingEventArgs<FloatingChartShape>)FilteredShapeCollection<FloatingChartShape>.OnChanged(ShapeCollectionChangedEventArgs<FloatingChartShape>)FilteredShapeCollection<FloatingChartShape>.CountFilteredShapeCollection<FloatingChartShape>.this[int]FilteredShapeCollection<FloatingChartShape>.WorksheetFilteredShapeCollection<FloatingChartShape>.ChangingFilteredShapeCollection<FloatingChartShape>.Changed...

Constructors

Initializes a new ChartCollection for the specified worksheet.

C#
public ChartCollection(Worksheet worksheet)
Parameters:worksheetWorksheet

The worksheet.

Methods

Creates a chart at the specified cell position based on the data range, automatically determining series orientation, and returns the chart shape.

C#
public FloatingChartShape Add(CellIndex cellIndex, CellRange chartDataRange, params ChartType[] chartTypes)
Parameters:cellIndexCellIndex

The cell index where the top left corner of the shape is positioned.

chartDataRangeCellRange

The range containing the data that the chart will be based on.

chartTypesChartType[]

The types of chart that will be created. Passing more than one type will create a combo chart.

Returns:

FloatingChartShape

The result chart shape.

Creates a chart at the specified cell position based on the data range with explicit series orientation control and returns the chart shape.

C#
public FloatingChartShape Add(CellIndex cellIndex, CellRange chartDataRange, SeriesRangesOrientation seriesRangesOrientation, params ChartType[] chartTypes)
Parameters:cellIndexCellIndex

The cell index where the top left corner of the shape is positioned.

chartDataRangeCellRange

The range containing the data that the chart will be based on.

seriesRangesOrientationSeriesRangesOrientation

A value indicating whether the series of the chart will refer to vertical or horizontal ranges or the direction will be determined automatically.

chartTypesChartType[]

The types of chart that will be created. Passing more than one type will create a combo chart.

Returns:

FloatingChartShape

The result chart shape.

Properties

Gets the shape type filtered by this collection, always returning Chart.

C#
public override FloatingShapeType ShapeType { get; }

Overrides: FilteredShapeCollection<FloatingChartShape>.ShapeType