Interface ICharts
Represents a collection of charts in the workbook.
Namespace: Syncfusion.XlsIO
Assembly: Syncfusion.XlsIO.Base.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 |
---|
System.Int32 |
Item[Int32]
Gets a single IChart object with the specified index.
Declaration
IChart this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type |
---|
IChart |
Item[String]
Gets a single IChart object with the specified name.
Declaration
IChart this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.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 |
---|---|---|
System.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 |
---|---|---|
System.String | name | Name of the object to remove from the collection. |
Returns
Type |
---|
IChart |