WorksheetCollection
Vue de l’ensemble
‘WorksheetCollection’ est une classe dans Aspose.Cells FOSS pour C++.
Encapsule les feuilles de travail du livre et l’état des feuillets actifs.
Cette classe fournit 13 méthodes pour travailler avec des objets de collection de feuilles d’oeuvre dans les programmes C++. Les méthodologies disponibles comprennent: ‘Add’, ‘GetActiveSheetIndex’, GatActivSheetsName', ‘GtCount’, 'RemoveAt', ’SetActifShealthIntex', ‚SetactiveNamen‘, 'WorksheetCollection, begin et ’end’. Tous les membres publics sont accessibles à toute application C ++ après l’installation de l’Aspose.Cells FOSS pour le package C+.
Méthodes accessorielles
| Name | Type | Access | Description |
|---|---|---|---|
WorksheetCollection | WorksheetCollection | Read | Gets the worksheet collection. |
méthodes
| Signature | Description |
|---|---|
WorksheetCollection() → WorksheetCollection | Calls WorksheetCollection on this WorksheetCollection instance. |
WorksheetCollection() | |
GetCount() → int | Gets the total number of worksheets in the workbook. |
GetActiveSheetIndex() → int | Gets or sets the zero-based index of the active worksheet. |
SetActiveSheetIndex(value: int) | Sets the active sheet index value. |
GetActiveSheetName() → std::string | Gets or sets the name of the active worksheet. |
SetActiveSheetName(value: std::string_view) | Sets the active sheet name value. |
Add() → int | Adds a worksheet using the next generated default name. The zero-based index of the added worksheet. |
Add(sheetName: std::string_view) → int | Adds a worksheet with the specified name and returns its index. The name of the new worksheet. The zero-based index of the added worksheet. |
RemoveAt(index: int) | Removes the worksheet at the specified zero-based index. The zero-based index of the worksheet to remove. |
RemoveAt(sheetName: std::string_view) | Removes the worksheet with the specified name. The name of the worksheet to remove. |
begin() → std::vector<std::unique_ptr<Worksheet>>::const_iterator | Returns an iterator to the beginning of the worksheet collection. |
end() → std::vector<std::unique_ptr<Worksheet>>::const_iterator | Returns an iterator to the end of the worksheet collection. |
Voir aussi
- Aspose.Cells — référence API d’entreprise