JSON API - addTextBox
addTextBox
PREMIUM
TRIAL / ADVANCED
Inserts a text box into the Excel spreadsheet.
Note
You are reading the JSON API documentation. For the PHP API method please go to addTextBox.
JSON data
| Key | Description |
|---|---|
| text | The content to be inserted. |
| bold | If true the content will be shown in bold characters. |
| color | Hexadecimal color value: "FF0000", "000000"... |
| font | Font family: "Arial", "Calibri"... |
| fontSize | Font size in points. |
| highlight | Hexadecimal color value: "FF0000", "000000"... |
| italic | If true displays the content in italics. |
| strikethrough | If true displays text in strikethrough. |
| transparency | 0 to 100. |
| underline | Underlines text: "single", "double". |
| position | Cell position in the active sheet: "A1", "C3", "AB7"... |
| align | left, center, right. |
| backgroundColor | Hexadecimal color value: "FF0000", "000000"... |
| backgroundTransparency | 0 to 100. |
| border |
|
| rotation | 60.000ths of a degree. |
| verticalAlign | top, middle, bottom. |
| colOffset |
|
| colSize | Number of columns used by the text box. |
| editAs | Possible values are:
|
| name | Sets a name value. |
| rowOffset |
|
| rowSize | Number of rows used by the text box. |
Code samples
Example #1
Release notes
- phpxlsx 6.0:
- new action.