ChartCollection
Vue de l’ensemble
‘ChartCollection’ est une classe dans Aspose.Cells FOSS pour Typescript.
ChartCollection.length et ChardColection.count exposent le nombre total de charts stockés dans la collection.
Cette classe fournit 11 méthodes pour travailler avec des objets de ChartCollection dans les programmes Typescript. Les méthodologies disponibles comprennent: add, addWithDataRange , ‘addWitOffset ; 'clear; ‘constructor : getByName ; ‘getChartInfos . , ‘removeAt! , ’setWorksheet‘ ; et ‘toArray’ . Tous les membres publics sont accessibles à toute application de TypeScript après l'installation de l’Aspose.Cells FOSS pour le package TypeScript . Propriétés :countetlongitude’.
Description
‘ChartCollection’ est une classe dans la bibliothèque Aspose.Cells FOSS pour TypeScript qui expose 10 méthodes et 2 propriétés pour l’utilisation programmée.
Les capacités de base comprennent : ’numéro’ ; ’nombre’; crée une nouvelle collection de diagrammes pour l’indice et le feuille de travail spécifiés. Ces opérations permettent aux développeurs d’intégrer directement la fonctionnalité de la collection des diagrames dans les applications TypeScript.
La classe fournit également la propriété de « longueur » (qui prend la longue), la « compte » propriétés (qu’elle prend le nombre).
Les instances sont créées à travers un constructeur unique qui initialisera l’objet avec des valeurs par défaut.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
length | number | Read | Gets the length. |
count | number | Read | Gets the count. |
méthodes
| Signature | Description |
|---|---|
constructor(sheetIndex: number, worksheet: Worksheet) | Creates a new ChartCollection for the specified sheet index and worksheet. |
setWorksheet(worksheet: Worksheet) | Sets the worksheet value. |
get(index: number) → `Chart | undefined` |
getByName(name: string) → `Chart | undefined` |
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 | Adds a chart with the given type and data range, returning the index of the new chart. |
addWithOffset(type: ChartType, topRow: number, top: number, leftColumn: number, left: number, height: number, width: number) → number | Adds a chart with precise pixel-offset positioning, returning the index of the new chart. |
removeAt(index: number) | Removes the chart at the specified index. |
clear() | Removes all charts from the collection. |
toArray() → Chart[] | Returns all charts in the collection as an array. |
getChartInfos() → Chart[] | Returns the chart infos. |
Voir aussi
- Aspose.Cells — référence API d’entreprise