Workbook
Workbook
Panoramica
Workbook è una classe in Aspose.Cells FOSS per TypeScript.
Questa classe dichiara 9 metodi per gli oggetti Workbook nei programmi TypeScript. I metodi disponibili includono: constructor, getNumFmt, load, protect, save, toCsv, toHtml, toJson, toMarkdown. I membri pubblici sono accessibili a qualsiasi applicazione TypeScript dopo aver installato il pacchetto Aspose.Cells FOSS per TypeScript. Proprietà: activeTab, borderId, cells, charts, code, col, e altre 15.
Proprietà
| Nome | Tipo | Accesso | Descrizione |
|---|---|---|---|
worksheets | WorksheetCollection | Lettura | Ottiene i fogli di lavoro. |
sharedStrings | string[] | Lettura | Ottiene le stringhe condivise. |
isProtected | boolean | Lettura | Ottiene il valore di IsProtected. |
charts | ChartInfo[] | Lettura | Ottiene i grafici. |
images | ImageInfo[] | Lettura | Ottiene le immagini. |
activeTab | number | Lettura/Scrittura | Ottiene la scheda attiva. |
password | : string | Lettura | Ottiene la password. |
saveFormat | : SaveFormat | Lettura | Ottiene il formato di salvataggio. |
password | : string | Lettura | Ottiene la password. |
saveFormat | : SaveFormat | Lettura | Ottiene il formato di salvataggio. |
col | : number | Lettura | Ottiene la colonna. |
colOff | : number | Lettura | Ottiene l’offset della colonna. |
row | : number | Lettura | Ottiene la riga. |
rowOff | : number | Lettura | Ottiene l’offset di riga. |
col | : number | Lettura | Ottiene il col. |
colOff | : number | Lettura | Ottiene il col off. |
row | : number | Lettura | Ottiene la riga. |
rowOff | : number | Lettura | Restituisce la riga disattivata. |
id | : number | Lettura | Ottiene l’id. |
code | : string | Lettura | Ottiene il codice. |
fontId | : number | Lettura | Ottiene il font id. |
fillId | : number | Lettura | Ottiene l’ID di riempimento. |
borderId | : number | Lettura | Restituisce l’ID del bordo. |
numFmtId | : number | Lettura | Ottiene il num fmt id. |
style | : Style | Lettura | Ottiene lo stile. |
sheetName | : string | Lettura | Ottiene il nome del foglio. |
cells | : { [key: string]: CellValue } | Lettura | Restituisce le celle. |
Metodi
| Firma | Descrizione |
|---|---|
constructor(createDefault: boolean) | Chiama il costruttore(createDefault) su questa istanza di Workbook. |
load(filePath: string, password: string) → Promise<Workbook> | Chiama load(filePath, password) su questa istanza di Workbook. |
| `getNumFmt(numFmtId: string | null)→string` |
protect(protect: boolean, password: string) | Chiama protect(protect, password) su questa istanza di Workbook. |
save(filePath: string, options: { password?: string; saveFormat?: SaveFormat }) | Chiama save(filePath, options) su questa istanza di Workbook. |
toHtml() → string | Chiama toHtml su questa istanza di Workbook. |
toCsv() → string | Chiamate a toCsv su questa istanza di Workbook. |
toJson() → string | Chiamate a toJson su questa istanza di Workbook. |
toMarkdown() → string | Chiamate a toMarkdown su questa istanza di Workbook. |