Workbook

Overview

Workbook is a class in Aspose.Cells FOSS for TypeScript.

This class declares 9 methods for Workbook objects in TypeScript programs. Available methods include: constructor, getNumFmt, load, protect, save, toCsv, toHtml, toJson, toMarkdown. Public members are accessible to any TypeScript application after installing the Aspose.Cells FOSS for TypeScript package. Properties: activeTab, borderId, cells, charts, code, col, and 15 more.

Properties

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.

Methods

SignatureDescription
constructor(createDefault: boolean)Calls constructor(createDefault) on this Workbook instance.
load(filePath: string, password: string)Promise<Workbook>Calls load(filePath, password) on this Workbook instance.
getNumFmt(numFmtId: string | null)stringCalls getNumFmt(numFmtId) on this Workbook instance.
protect(protect: boolean, password: string)Calls protect(protect, password) on this Workbook instance.
save(filePath: string, options: { password?: string; saveFormat?: SaveFormat })Calls save(filePath, options) on this Workbook instance.
toHtml()stringCalls toHtml on this Workbook instance.
toCsv()stringCalls toCsv on this Workbook instance.
toJson()stringCalls toJson on this Workbook instance.
toMarkdown()stringCalls toMarkdown on this Workbook instance.

See Also

 English