CellRenderContext Interface
Platform-independent cell rendering context; dimensions are unscaled CSS pixels and font size is in points.
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 |
|---|---|
| address | The address value of CellRenderContext. |
| displayText | The displayText value of CellRenderContext. |
| height | The height value of CellRenderContext. |
| initialInput | The initialInput value of CellRenderContext. |
| options | The options value of CellRenderContext. |
| sheetId | The sheetId value of CellRenderContext. |
| style | The style value of CellRenderContext. |
| value | The value value of CellRenderContext. |
| width | The width value of CellRenderContext. |
Examples
Pass the CellRenderContext 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 inspectCellRenderContextSheetId(
cellRenderContext: Parameters<Parameters<ServerSheetControl['workbook']['cellTypes']['register']>[1]['render']>[0],
) {
const value = cellRenderContext['sheetId'];
console.log('CellRenderContext.sheetId', value);
}