This API supports undo/redo in NOTE.This API modifies the TextBox selected by the current lasso selection. The lasso selection must contain exactly one TextBox; otherwise the call fails.
It is recommended to call this API from the plugin UI entered via a lasso toolbar button.
| Parameter | Type | Description |
|---|---|---|
textBox.textContentFull | string | Text content (required, non-empty) |
textBox.textRect | Rect | TextBox rectangle (required; must be non-zero area) |
textBox.fontSize | number | Font size (optional; must be positive) |
textBox.fontPath | string | Font path (optional) |
textBox.textDigestData | string | Digest data (optional) |
textBox.textAlign | number | Alignment (optional) |
textBox.textBold | number | Bold (optional) |
textBox.textItalics | number | Italic (optional) |
textBox.textFrameWidthType | number | Border width type (optional) |
textBox.textFrameWidth | number | Border width (optional) |
textBox.textFrameStyle | number | Border style (optional) |
textBox.textEditable | number | Editable state (optional) |
APIResponse<boolean>:result === trueindicates the modification succeeded