Workbook.clearSparklines Method
Active-sheet sparkline operation; validated, persisted and undoable.
Owner: Workbook. Package: @txtextcontrol/tx-sheet-control-server. Version: 2.0.0.
Syntax
clearSparklines(range: string): void
Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
range | string | No | A1 range on the owning worksheet. |
Return Value
void.
Examples
Use a fresh sample workbook for this example. In the browser pass editor.workbook; in Node.js pass the server control. Document-bound objects are obtained from that same owner.
import type { ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';
function applyWorkbookClearSparklines(control: ServerSheetControl) {
const book = control.workbook;
const workbook = book;
workbook.clearSparklines('E2:E5');
}
Remarks
Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.