Class ChartCollection
Represents a collection of charts.
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Model
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public class ChartCollection : FilteredShapeCollection<FloatingChartShape>, IEnumerable<FloatingChartShape>, IEnumerable
Constructors
ChartCollection(Worksheet)
Initializes a new instance of the ChartCollection class.
Declaration
public ChartCollection(Worksheet worksheet)
Parameters
Worksheet
worksheet
The worksheet. |
Properties
ShapeType
Gets the type of the shape.
Declaration
public override FloatingShapeType ShapeType { get; }
Property Value
FloatingShapeType
|
Overrides
Methods
Add(CellIndex, CellRange, ChartType[])
Creates and adds a chart to the collection.
Declaration
public FloatingChartShape Add(CellIndex cellIndex, CellRange chartDataRange, params ChartType[] chartTypes)
Parameters
CellIndex
cellIndex
The cell index where the top left corner of the shape is positioned. |
CellRange
chartDataRange
The range containing the data that the chart will be based on. |
ChartType[]
chartTypes
The types of chart that will be created. Passing more than one type will create a combo chart. |
Returns
FloatingChartShape
The result chart shape. |
Add(CellIndex, CellRange, SeriesRangesOrientation, ChartType[])
Creates and adds a chart to the collection.
Declaration
public FloatingChartShape Add(CellIndex cellIndex, CellRange chartDataRange, SeriesRangesOrientation seriesRangesOrientation, params ChartType[] chartTypes)
Parameters
CellIndex
cellIndex
The cell index where the top left corner of the shape is positioned. |
CellRange
chartDataRange
The range containing the data that the chart will be based on. |
SeriesRangesOrientation
seriesRangesOrientation
A value indicating whether the series of the chart will refer to vertical or horizontal ranges or the direction will be determined automatically. |
ChartType[]
chartTypes
The types of chart that will be created. Passing more than one type will create a combo chart. |
Returns
FloatingChartShape
The result chart shape. |