NamedCellStyle Interface
Detached named style definition including native include/protection/color metadata.
Package: @txtextcontrol/tx-sheet-control-server. Version: 2.0.0.
Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.
Members
Properties
| Property | Description |
|---|---|
| formatting | The formatting value of NamedCellStyle. |
| id | The id value of NamedCellStyle. |
| name | The name value of NamedCellStyle. |
Examples
Pass the NamedCellStyle value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.
import type { ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';
function inspectNamedCellStyleId(
namedCellStyle: Awaited<ReturnType<ServerSheetControl['workbook']['listNamedStyles']>>[number],
) {
const value = namedCellStyle['id'];
console.log('NamedCellStyle.id', value);
}