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

NameTypeAccessDescription
lengthnumberReadGets the length.
countnumberReadGets the count.

Methods

SignatureDescription
constructor(sheetIndex: number, worksheet: Worksheet)Calls constructor(sheetIndex, worksheet) on this ChartCollection instance.
setWorksheet(worksheet: Worksheet)Sets the worksheet value.
get(index: number) → Chart | undefinedCalls get(index) on this ChartCollection instance.
getByName(name: string) → Chart | undefinedCalls getByName(name) on this ChartCollection instance.
add(type: ChartType, topRow: number, leftColumn: number, bottomRow: number, rightColumn: number) → numberReturns 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) → numberCalls 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) → numberCalls 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.

See Also

 English