Le livre de travail

Le livre de travail

Vue de l’ensemble

‘Workbook’ est une classe dans Aspose.Cells FOSS pour Typescript.

La classe Workbook fournit un point d’entrée de haut niveau pour charger les fichiers de feuille de travail existants, manipuler les feuilles de travaux et enregistrer dans des formats tels que XLSX et HTML.

Cette classe fournit 9 méthodes pour travailler avec des objets de Workbook dans les programmes Typescript. Les méthodologies disponibles comprennent: constructor, getNumFmt , ’load ، 'protect ; save; toCsv : tHtml et Json . Tous les membres publics sont accessibles à toute application TypeScript après avoir installé l’Aspose.Cells FOSS pour le package Typscript . Propriétés : ‘activeTabou 'borderId', 'celles', ‘charts',code` c’ et plus 15.

Description

‘Workbook’ est une classe dans la bibliothèque Aspose.Cells FOSS pour TypeScript qui expose 8 méthodes et 27 propriétés pour l’utilisation programmée.

Les capacités de base comprennent : ‘collection des feuilles d’œuvre’, ‘string[]’ et ‘boolean’.Ces opérations permettent aux développeurs d’intégrer directement la fonctionnalité du livre de travail dans les applications TypeScript.

La classe fournit également la propriété des « feuilles de travail » (qui prend les feuillets), la possession des “sharedStrings” (qu’ils ont des files partagées) et la « non protégée » (« protégeé »).

Les instances sont créées à travers un constructeur unique qui initialisera l’objet avec des valeurs par défaut.

Propriétés

NameTypeAccessDescription
worksheetsWorksheetCollectionReadGets the worksheets.
sharedStringsstring[]ReadGets the shared strings.
isProtectedbooleanReadGets the is protected.
chartsChartInfo[]ReadGets the charts.
imagesImageInfo[]ReadGets the images.
activeTabnumberRead/WriteGets the active tab.
password: stringReadGets the password.
saveFormat: SaveFormatReadGets the save format.
password: stringReadGets the password.
saveFormat: SaveFormatReadGets the save format.
col: numberReadGets the col.
colOff: numberReadGets the col off.
row: numberReadGets the row.
rowOff: numberReadGets the row off.
col: numberReadGets the col.
colOff: numberReadGets the col off.
row: numberReadGets the row.
rowOff: numberReadGets the row off.
id: numberReadGets the id.
code: stringReadGets the code.
fontId: numberReadGets the font id.
fillId: numberReadGets the fill id.
borderId: numberReadGets the border id.
numFmtId: numberReadGets the num fmt id.
style: StyleReadGets the style.
sheetName: stringReadGets the sheet name.
cells: { [key: string]: CellValue }ReadGets the cells.

méthodes

SignatureDescription
constructor(createDefault: boolean)Initializes a new Workbook, optionally creating a default worksheet.
load(filePath: string, password: string)Promise<Workbook>Asynchronously loads a spreadsheet file from the given path and returns a Workbook instance.
`getNumFmt(numFmtId: stringnull)string`
protect(protect: boolean, password: string)Enables or disables workbook protection with the given password.
save(filePath: string, options: { password?: string; saveFormat?: SaveFormat })Saves the workbook to the given file path using the specified options.
toHtml()stringConverts the workbook to an HTML string.
toCsv()stringConverts the workbook to a CSV string.
toJson()stringConverts the workbook to a JSON string.
toMarkdown()stringConverts the workbook to a Markdown string.

Voir aussi

  • Aspose.Cells — référence API d’entreprise
 Français