Interface ICharts
Represents a collection of charts in the workbook.
Inherited Members
Namespace: Syncfusion.XlsIO
Assembly: Syncfusion.XlsIO.NET.dll
Syntax
public interface ICharts : IEnumerable, IParentApplication
Properties
Count
Gets the number of charts in the workbook. Read-only.
Declaration
int Count { get; }
Property Value
| Type |
|---|
| int |
this[int]
Gets a single IChart object with the specified index.
Declaration
IChart this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Property Value
| Type |
|---|
| IChart |
this[string]
Gets a single IChart object with the specified name.
Declaration
IChart this[string name] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| string | name |
Property Value
| Type |
|---|
| IChart |
Methods
Add()
Creates a new chart sheet.
Declaration
IChart Add()
Returns
| Type | Description |
|---|---|
| IChart | Newly created chart object. |
Add(string)
Creates a new chart sheet with the specified name.
Declaration
IChart Add(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Name of the new chart sheet. |
Returns
| Type | Description |
|---|---|
| IChart | Newly created chart object. |
AddCopy(IChart)
Adds copy of the specified chart to the collection.
Declaration
void AddCopy(IChart chartToCopy)
Parameters
| Type | Name | Description |
|---|---|---|
| IChart | chartToCopy | Chart to copy. |
Remove(string)
Removes the specified chart sheet from the workbook.
Declaration
IChart Remove(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Name of the object to remove from the collection. |
Returns
| Type |
|---|
| IChart |