ChartCollection
Overview
ChartCollection is a class in Aspose.Cells FOSS for TypeScript.
ChartCollection.length and ChartCollection.count both expose the total number of charts stored in the collection.
This class declares 11 methods for ChartCollection objects in TypeScript programs.
Available methods include: add, addWithDataRange, addWithOffset, clear, constructor, get, getByName, getChartInfos, removeAt, setWorksheet, toArray.
Public members are accessible to any TypeScript application after installing the Aspose.Cells FOSS for TypeScript package.
Properties: count, length.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
length | number | Read | Gets the length. |
count | number | Read | Gets the count. |
Methods
| Signature | Description |
|---|---|
constructor(sheetIndex: number, worksheet: Worksheet) | Calls constructor(sheetIndex, worksheet) on this ChartCollection instance. |
setWorksheet(worksheet: Worksheet) | Sets the worksheet value. |
get(index: number) → Chart | undefined | Calls get(index) on this ChartCollection instance. |
getByName(name: string) → Chart | undefined | Calls getByName(name) on this ChartCollection instance. |
add(type: ChartType, topRow: number, leftColumn: number, bottomRow: number, rightColumn: number) → number | Returns the numeric index of the newly added chart, which can be used with get(index) to retrieve the chart instance |
addWithDataRange(type: ChartType, dataRange: string, isVertical: boolean, topRow: number, leftColumn: number, rightRow: number, bottomColumn: number) → number | Calls addWithDataRange(type, dataRange, isVertical, topRow, leftColumn, rightRow, bottomColumn) on this ChartCollection instance. |
addWithOffset(type: ChartType, topRow: number, top: number, leftColumn: number, left: number, height: number, width: number) → number | Calls addWithOffset(type, topRow, top, leftColumn, left, height, width) on this ChartCollection instance. |
removeAt(index: number) | Calls removeAt(index) on this ChartCollection instance. |
clear() | Calls clear on this ChartCollection instance. |
toArray() → Chart[] | Calls toArray on this ChartCollection instance. |
getChartInfos() → Chart[] | Returns the chart infos. |