Le livre de travail

Le livre de travail

Vue de l’ensemble

‘Workbook’ est une classe dans Aspose.Cells for NET. Inherits de: ‘IDisposable’.

Workbook.Workbook() crée une nouvelle instance de livre de travail vide.

Description

‘Workbook’ est une classe dans la bibliothèque Aspose.Cells FOSS pour .NET qui expose 6 méthodes et 6 propriétés pour l’utilisation programmatique.

La classe fournit également la propriété de «Worksheets» (la propriétés reçoit la collection de feuilles dans le livre d’œuvre), la «Settings» propriétaire (le proprietat reçut des paramètres au niveau du livre de travail tels que le mode de calcul), le proprieté de »Propriétées» («propriété reçu les propriètes du journal de œuvre comme l’auteur et le titre).

La classe propose 5 surcharges constructeurs, permettant une initialisation flexible en fonction du contexte de l’appel.

Propriétés

NameTypeAccessDescription
WorksheetsWorksheetCollectionReadProperty gets the collection of worksheets in the workbook
SettingsWorkbookSettingsReadProperty gets workbook-level settings such as calculation mode
PropertiesWorkbookPropertiesReadProperty gets core workbook properties like author and title
DocumentPropertiesDocumentPropertiesReadProperty gets extended document properties of the workbook
DefinedNamesDefinedNameCollectionReadProperty gets the collection of defined names (named ranges) in the workbook
LoadDiagnosticsLoadDiagnosticsReadProperty gets diagnostics information from the last load operation

méthodes

SignatureDescription
Workbook()Creates a new empty workbook instance
Workbook(fileName: string)Opens an existing workbook from the specified file path
Workbook(stream: Stream)Opens a workbook from the given stream using auto-detected format
Workbook(fileName: string, options: LoadOptions)Opens an existing workbook from the file path with the specified load options
Workbook(stream: Stream, options: LoadOptions)Opens a workbook from the given stream with the specified load options
Save(fileName: string)Saves the workbook to the specified file path in default format
Save(fileName: string, format: SaveFormat)Saves the workbook to the file path in the specified SaveFormat
Save(fileName: string, options: SaveOptions)Saves the workbook to the file path using the specified save options
Save(stream: Stream, format: SaveFormat)Saves the workbook to the given stream in the specified SaveFormat
Save(stream: Stream, options: SaveOptions)Saves the workbook to the given stream using the specified save options
Dispose()Releases resources used by the workbook

Voir aussi

  • Aspose.Cells pour .NET — Enterprise API Reference
 Français