DrawingPosition Type
Public type for DrawingPosition.
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.
Syntax
type DrawingPosition = ChartPosition;
Members
Properties
| Property | Description |
|---|---|
| column | The column value of DrawingPosition. |
| end | The end value of DrawingPosition. |
| height | The height value of DrawingPosition. |
| offsetX | The offsetX value of DrawingPosition. |
| offsetY | The offsetY value of DrawingPosition. |
| row | The row value of DrawingPosition. |
| width | The width value of DrawingPosition. |
Examples
Pass the DrawingPosition 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 inspectDrawingPositionRow(
drawingPosition: Awaited<
ReturnType<Awaited<ReturnType<ServerSheetControl['workbook']['sheets']['get']>>['drawings']['get']>
>['snapshot']['position'],
) {
const value = drawingPosition['row'];
console.log('DrawingPosition.row', value);
}