Cell
Přehled
Cell je třída v Aspose.Cells FOSS pro TypeScript.
Tato třída deklaruje 8 metod pro objekty Cell v programech TypeScript. Dostupné metody zahrnují: constructor, putValue, setFormula, setHyperlink, setSharedStrings, setStyle, setStyleIndex, toXml. Veřejné členy jsou přístupné jakékoli aplikaci TypeScript po instalaci balíčku Aspose.Cells FOSS pro TypeScript. Vlastnosti: col, formula, hyperlink, ref, row, sharedStringMap a 3 další.
Vlastnosti
| Název: | Typ: | Přístup | Popis: |
|---|---|---|---|
sharedStringMap | : Map<string, number> | Čtení/zápis | Získá nebo nastaví mapu sdílených řetězců. |
row | `` | Čtení | Získá řádek. |
col | `` | Čtení | Získá sloupec. |
ref | `` | Čtení | Získá referenci. |
value | CellValue | Čtení/zápis | Získá hodnotu. |
formula | `string | undefined` | Čtení/zápis |
style | `Style | undefined` | Čtení/zápis |
styleIndex | `number | undefined` | Čtení |
hyperlink | `string | undefined` | Čtení |
Metody
| Podpis: | Popis: |
|---|---|
setSharedStrings(strings: string[]) | Nastaví hodnotu sdílených řetězců. |
constructor(row: number, col: number, value: CellValue) | Volá konstruktor(row, col, value) na této instanci Cell. |
putValue(value: CellValue) | Volá putValue(value) na této instanci Cell. |
setFormula(formula: string) | Nastaví hodnotu vzorce. |
setStyle(style: Style) | Nastaví hodnotu stylu. |
setStyleIndex(index: number) | Nastavuje hodnotu indexu stylu. |
setHyperlink(url: string) | Nastaví hodnotu hypertextového odkazu. |
toXml() → string | Volá toXml na této instanci Cell. |