Worksheet
Worksheet
Panoramica
Worksheet è una classe in Aspose.Cells FOSS per TypeScript.
Questa classe dichiara 24 metodi per gli oggetti Worksheet nei programmi TypeScript. I metodi disponibili includono: addComment, addConditionalFormat, addDataValidation, addHyperlink, addImage, addShape, constructor, getCell, getCell2, getCellByRef, getColumnWidth, getRowHeight e 12 metodi aggiuntivi. I membri pubblici sono accessibili a qualsiasi applicazione TypeScript dopo aver installato il pacchetto Aspose.Cells FOSS per TypeScript. Proprietà: autoFilter, cell, cells, charts, comments, conditionalFormats e 17 in più.
Proprietà
| Nome | Tipo | Accesso | Descrizione |
|---|---|---|---|
cell | : string | Lettura | Ottiene la cella. |
link | : Hyperlink | Lettura | Ottiene il collegamento. |
startRow | : number | Lettura | Restituisce la riga di inizio. |
startCol | : number | Lettura | Ottiene la colonna di inizio. |
endRow | : number | Lettura | Ottiene la riga finale. |
endCol | : number | Lettura | Ottiene la colonna finale. |
range | : string | Lettura | Ottiene l’intervallo. |
rules | : ConditionalFormatRule[] | Lettura | Ottiene le regole. |
name | string | Lettura/Scrittura | Ottiene il nome. |
index | number | Lettura | Ottiene l’indice. |
cells | `` | Lettura | Ottiene le celle. |
value | `CellValue | undefined` | Lettura/Scrittura |
dataValidations | `` | Lettura | Ottiene le convalide dei dati. |
comments | `` | Lettura | Restituisce i commenti. |
hyperlinks | `` | Lettura | Ottiene i collegamenti ipertestuali. |
autoFilter | `` | Lettura | Ottiene il filtro automatico. |
conditionalFormats | `` | Lettura | Ottiene i formati condizionali. |
mergedCells | `` | Lettura | Ottiene le celle unite. |
defaultColumnWidth | `number | undefined` | Lettura/Scrittura |
defaultRowHeight | `number | undefined` | Lettura/Scrittura |
shapes | ShapeInfo[] | Lettura | Ottiene le forme. |
charts | ChartCollection | Lettura | Ottiene i grafici. |
images | ImageInfo[] | Lettura | Ottiene le immagini. |
Metodi
| Firma | Descrizione |
|---|---|
constructor(name: string, index: number) | Chiama constructor(name, index) su questa istanza di Worksheet. |
getCell(row: number, col: number) → `Cell | undefined` |
getCellByRef(ref: string) → `Cell | undefined` |
getCell2(key: string) → Cell | Chiama getCell2(key) su questa istanza di Worksheet. |
putValue(key: string, value: CellValue) → Cell | Chiama putValue(key, value) su questa istanza di Worksheet. |
addDataValidation(validation: DataValidation, range: string) | Chiama addDataValidation(validation, range) su questa istanza di Worksheet. |
addComment(comment: Comment) | Chiama addComment(comment) su questa istanza di Worksheet. |
addHyperlink(cellRef: string, hyperlink: Hyperlink) | Chiama addHyperlink(cellRef, hyperlink) su questa istanza di Worksheet. |
setAutoFilter(range: string) | Imposta il valore del filtro automatico. |
removeAutoFilter() | Chiama removeAutoFilter su questa istanza di Worksheet. |
addConditionalFormat(range: string, rules: ConditionalFormatRule[]) | Chiama addConditionalFormat(range, rules) su questa istanza di Worksheet. |
mergeCells(range: string) | Chiama mergeCells(range) su questa istanza di Worksheet. |
unmergeCells(range: string) | Chiama unmergeCells(range) su questa istanza di Worksheet. |
setColumnWidth(column: number, width: number) | Imposta il valore della larghezza della colonna. |
getColumnWidth(column: number) → `number | undefined` |
setRowHeight(row: number, height: number) | Imposta il valore dell’altezza della riga. |
getRowHeight(row: number) → `number | undefined` |
setRowHidden(row: number, hidden: boolean) | Imposta il valore di riga nascosta. |
isRowHidden(row: number) → boolean | Chiama isRowHidden(row) su questa istanza di Worksheet. |
setCellStyle(cellRef: string, style: any) | Imposta il valore dello stile della cella. |
addShape(shape: ShapeInfo) | Chiama addShape(shape) su questa istanza di Worksheet. |
addImage(image: ImageInfo) | Chiama addImage(image) su questa istanza di Worksheet. |
toXml(drawingIndex: number) → string | Chiama toXml(drawingIndex) su questa istanza di Worksheet. |
getXml(drawingIndex: number) → string | Chiama getXml(drawingIndex) su questa istanza di Worksheet. |