Cell
Cell
Przegląd
Cell jest klasą w Aspose.Cells FOSS dla TypeScript.
Ta klasa deklaruje 8 metod dla obiektów Cell w programach TypeScript. Dostępne metody to: constructor, putValue, setFormula, setHyperlink, setSharedStrings, setStyle, setStyleIndex, toXml. Członkowie publiczni są dostępni dla każdej aplikacji TypeScript po zainstalowaniu pakietu Aspose.Cells FOSS dla TypeScript. Właściwości: col, formula, hyperlink, ref, row, sharedStringMap oraz 3 dodatkowe.
Właściwości
| Nazwa | Typ | Dostęp | Opis |
|---|---|---|---|
sharedStringMap | : Map<string, number> | Odczyt/zapis | Pobiera lub ustawia mapę współdzielonych ciągów. |
row | `` | Odczyt | Pobiera wiersz. |
col | `` | Odczyt | Zwraca kolumnę. |
ref | `` | Odczyt | Pobiera referencję. |
value | CellValue | Odczyt/zapis | Pobiera wartość. |
formula | `string | undefined` | Odczyt/zapis |
style | `Style | undefined` | Odczyt/zapis |
styleIndex | `number | undefined` | Odczyt |
hyperlink | `string | undefined` | Odczyt |
Metody
| Sygnatura | Opis |
|---|---|
setSharedStrings(strings: string[]) | Ustawia wartość współdzielonych ciągów. |
constructor(row: number, col: number, value: CellValue) | Wywołuje konstruktor(row, col, value) na tej instancji klasy Cell. |
putValue(value: CellValue) | Wywołuje putValue(value) na tej instancji klasy Cell. |
setFormula(formula: string) | Ustawia wartość formuły. |
setStyle(style: Style) | Ustawia wartość stylu. |
setStyleIndex(index: number) | Ustawia wartość indeksu stylu. |
setHyperlink(url: string) | Ustawia wartość hiperłącza. |
toXml() → string | Wywołuje metodę toXml na tej instancji Cell. |