TX Sheet Control

NamedCellStyle Interface

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

PropertyDescription
formattingThe formatting value of NamedCellStyle.
idThe id value of NamedCellStyle.
nameThe 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);
}

See Also