Explore the API
Shapes and drawing objects
Explore a purchase approval flow built from editable shapes, then change text, color, position, size, and rotation.
Try this workflowExplore and compare
Change the inputs, run an action, and inspect the live result below.
ResultLive API output
Select and resize the shapes in the worksheet. Approve changes the green step and the first request; move repositions and rotates the revision step.
Preparing sample...
Keep exploringReset or save
Reset restores this sample's starting document. TXWB retains its spreadsheet, dashboard, and reporting definitions.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
Shapes and drawing objects
Shapes are document drawing objects anchored to worksheet cells. A shared canvas origin and pixel offsets align the main flow on one centerline and connect the revision branch below the decision. The request table sits below the diagram. Selecting a drawing exposes the native contextual commands. Approving the request updates a shape and the underlying table independently; moving the revision step also extends its connector.
APIs used
sheet.drawings.addShape()
DrawingHandle.update()
DrawingHandle.moveTo()
DrawingHandle.resize()
DrawingHandle.rotate()
editor.ui.selectDrawing()
How to explore
Explore a purchase approval flow built from editable shapes, then change text, color, position, size, and rotation.
Select and resize the shapes in the worksheet. Approve changes the green step and the first request; move repositions and rotates the revision step.
Document ownership
The ready event supplies the initialized editor. Each action resolves document objects from the current workbook. Reset loads a clean TXWB snapshot; worksheet, range, chart, and dashboard handles must be acquired again after loading.
The Code panel shows this sample's actual implementation and the shared hosting code. Downloads contain the current document; changes are not stored on the server.
NuGet packages
TXTextControl.TXSheetControl.AspNetCore
2.0.0-beta.1
Provides the Razor spreadsheet editor, browser APIs, and packaged fonts.
dotnet add package TXTextControl.TXSheetControl.AspNetCore --version 2.0.0-beta.1