TextBox can only be inserted into the main layer. This API supports undo/redo in NOTE.
| 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 (must be positive) |
textBox.fontPath | string | Font path (optional) |
textBox.textAlign | number | Alignment: 0 left, 1 center, 2 right |
textBox.textBold | number | Bold: 0 normal, 1 bold |
textBox.textItalics | number | Italic: 0 normal, 1 italic |
textBox.textFrameWidthType | number | Border width type: 0 fixed width, 1 auto width |
textBox.textFrameStyle | number | Border style: 0 none, 3 stroke |
textBox.textEditable | number | Editable: 0 editable, 1 non-editable |
APIResponse<boolean>:result === trueindicates the insertion succeeded