Class WorksheetChartsCollection
Implements
Inherited Members
Namespace: Syncfusion.XlsIO.Implementation.Collections
Assembly: Syncfusion.XlsIO.NET.dll
Syntax
public class WorksheetChartsCollection : CollectionBaseEx<object>, IList<object>, ICollection<object>, IEnumerable<object>, ICloneParent, IChartShapes, IEnumerable, IParentApplication
Constructors
WorksheetChartsCollection(IApplication, object)
Declaration
public WorksheetChartsCollection(IApplication application, object parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IApplication | application | |
| object | parent |
Properties
this[int]
Returns a single Chart object from a Charts collection.
Declaration
public IChartShape this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Property Value
| Type |
|---|
| IChartShape |
this[string]
Returns a single Chart object from a Charts collection.
Declaration
public IChartShape this[string name] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Chart name |
Property Value
| Type | Description |
|---|---|
| IChartShape | IChartShape object |
Methods
Add()
Creates a new chart.
Declaration
public IChartShape Add()
Returns
| Type | Description |
|---|---|
| IChartShape | Newly created chart object. |
AddChart()
Adds chart.
Declaration
public IChart AddChart()
Returns
| Type | Description |
|---|---|
| IChart | Added chart. |
AddChart(IChartShape)
Adds new chart to the collection.
Declaration
protected IChartShape AddChart(IChartShape chart)
Parameters
| Type | Name | Description |
|---|---|---|
| IChartShape | chart | Chart to add. |
Returns
| Type | Description |
|---|---|
| IChartShape | Added chart. |
InnerAddChart(IChartShape)
Adds new chart to the collection (doesn't add it to the shapes collection).
Declaration
protected IChartShape InnerAddChart(IChartShape chart)
Parameters
| Type | Name | Description |
|---|---|---|
| IChartShape | chart | Chart to add. |
Returns
| Type | Description |
|---|---|
| IChartShape | Added chart. |
RemoveAt(int)
Remove chart with specified index.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | Index of chart to remove. |