WorksheetCollection

WorksheetCollection

Overview

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

This class declares 16 methods for WorksheetCollection objects in TypeScript programs. Available methods include: [Symbol.iterator], addWorksheet, clear, constructor, filter, find, forEach, get, getByName, getNumFmt, getStyle, indexOf, and 4 additional methods. Public members are accessible to any TypeScript application after installing the Aspose.Cells FOSS for TypeScript package. Properties: length, styles, worksheet, worksheetCount, worksheets.

Properties

NameTypeAccessDescription
worksheetsWorksheet[]ReadGets the worksheets.
lengthnumberReadGets the length.
worksheetCountnumberReadGets the worksheet count.
worksheetWorksheetReadGets the worksheet.
stylesMap<number, Style>ReadGets the styles.

Methods

SignatureDescription
constructor(createDefault: boolean)Calls constructor(createDefault) on this WorksheetCollection instance.
[Symbol.iterator]()Iterator<Worksheet>Calls [Symbol.iterator] on this WorksheetCollection instance.
get(index: number)Worksheet | undefinedCalls get(index) on this WorksheetCollection instance.
getByName(name: string)Worksheet | undefinedCalls getByName(name) on this WorksheetCollection instance.
map(callback: (value: Worksheet, index: number) => T)T[]Calls map(callback) on this WorksheetCollection instance.
filter(callback: (value: Worksheet, index: number) => boolean)Worksheet[]Calls filter(callback) on this WorksheetCollection instance.
forEach(callback: (value: Worksheet, index: number) => void)Calls forEach(callback) on this WorksheetCollection instance.
find(callback: (value: Worksheet, index: number) => boolean)Worksheet | undefinedCalls find(callback) on this WorksheetCollection instance.
indexOf(searchElement: Worksheet, fromIndex: number)numberCalls indexOf(searchElement, fromIndex) on this WorksheetCollection instance.
addWorksheet(name: string)WorksheetCalls addWorksheet(name) on this WorksheetCollection instance.
removeWorksheet(index: number)booleanCalls removeWorksheet(index) on this WorksheetCollection instance.
moveWorksheet(fromIndex: number, toIndex: number)booleanCalls moveWorksheet(fromIndex, toIndex) on this WorksheetCollection instance.
getStyle(index: number)Style | undefinedCalls getStyle(index) on this WorksheetCollection instance.
setStyle(index: number, style: Style)Sets the style value.
clear()Calls clear on this WorksheetCollection instance.
getNumFmt(numFmtId: string | null)stringCalls getNumFmt(numFmtId) on this WorksheetCollection instance.

See Also

 English