TX Sheet Control

DrawingPosition Type

Interface

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

PropertyDescription
columnThe column value of DrawingPosition.
endThe end value of DrawingPosition.
heightThe height value of DrawingPosition.
offsetXThe offsetX value of DrawingPosition.
offsetYThe offsetY value of DrawingPosition.
rowThe row value of DrawingPosition.
widthThe 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);
}

See Also