Worksheet

Overview

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

This class declares 24 methods for Worksheet objects in TypeScript programs. Available methods include: addComment, addConditionalFormat, addDataValidation, addHyperlink, addImage, addShape, constructor, getCell, getCell2, getCellByRef, getColumnWidth, getRowHeight, and 12 additional methods. Public members are accessible to any TypeScript application after installing the Aspose.Cells FOSS for TypeScript package. Properties: autoFilter, cell, cells, charts, comments, conditionalFormats, and 17 more.

Properties

NameTypeAccessDescription
cell: stringReadGets the cell.
link: HyperlinkReadGets the link.
startRow: numberReadGets the start row.
startCol: numberReadGets the start col.
endRow: numberReadGets the end row.
endCol: numberReadGets the end col.
range: stringReadGets the range.
rules: ConditionalFormatRule[]ReadGets the rules.
namestringRead/WriteGets the name.
indexnumberReadGets the index.
cells``ReadGets the cells.
valueCellValue | undefinedRead/WriteGets the value.
dataValidations``ReadGets the data validations.
comments``ReadGets the comments.
hyperlinks``ReadGets the hyperlinks.
autoFilter``ReadGets the auto filter.
conditionalFormats``ReadGets the conditional formats.
mergedCells``ReadGets the merged cells.
defaultColumnWidthnumber | undefinedRead/WriteGets the default column width.
defaultRowHeightnumber | undefinedRead/WriteGets the default row height.
shapesShapeInfo[]ReadGets the shapes.
chartsChartCollectionReadGets the charts.
imagesImageInfo[]ReadGets the images.

Methods

SignatureDescription
constructor(name: string, index: number)Calls constructor(name, index) on this Worksheet instance.
getCell(row: number, col: number)Cell | undefinedCalls getCell(row, col) on this Worksheet instance.
getCellByRef(ref: string)Cell | undefinedCalls getCellByRef(ref) on this Worksheet instance.
getCell2(key: string)CellCalls getCell2(key) on this Worksheet instance.
putValue(key: string, value: CellValue)CellCalls putValue(key, value) on this Worksheet instance.
addDataValidation(validation: DataValidation, range: string)Calls addDataValidation(validation, range) on this Worksheet instance.
addComment(comment: Comment)Calls addComment(comment) on this Worksheet instance.
addHyperlink(cellRef: string, hyperlink: Hyperlink)Calls addHyperlink(cellRef, hyperlink) on this Worksheet instance.
setAutoFilter(range: string)Sets the auto filter value.
removeAutoFilter()Calls removeAutoFilter on this Worksheet instance.
addConditionalFormat(range: string, rules: ConditionalFormatRule[])Calls addConditionalFormat(range, rules) on this Worksheet instance.
mergeCells(range: string)Calls mergeCells(range) on this Worksheet instance.
unmergeCells(range: string)Calls unmergeCells(range) on this Worksheet instance.
setColumnWidth(column: number, width: number)Sets the column width value.
getColumnWidth(column: number)number | undefinedCalls getColumnWidth(column) on this Worksheet instance.
setRowHeight(row: number, height: number)Sets the row height value.
getRowHeight(row: number)number | undefinedCalls getRowHeight(row) on this Worksheet instance.
setRowHidden(row: number, hidden: boolean)Sets the row hidden value.
isRowHidden(row: number)booleanCalls isRowHidden(row) on this Worksheet instance.
setCellStyle(cellRef: string, style: any)Sets the cell style value.
addShape(shape: ShapeInfo)Calls addShape(shape) on this Worksheet instance.
addImage(image: ImageInfo)Calls addImage(image) on this Worksheet instance.
toXml(drawingIndex: number)stringCalls toXml(drawingIndex) on this Worksheet instance.
getXml(drawingIndex: number)stringCalls getXml(drawingIndex) on this Worksheet instance.

See Also

 English