JSON API - addShape
addShape
PREMIUM
TRIAL / ADVANCED
Inserts a shape into the Excel spreadsheet.
Note
You are reading the JSON API documentation. For the PHP API method please go to addShape.
JSON data
| Key | Description |
|---|---|
| type |
|
| position | Cell position in the active sheet: "A1", "C3", "AB7"... |
| colOffset |
|
| colSize | Number of columns used by the image. |
| customGeom | Custom geometry. |
| editAs | Possible values are:
|
| fillColor | "#FF0000", "#00FFFF"... |
| imageContent | Image path, Base64 string, or URL. |
| name | Sets a name value. |
| outlineColor | "#FF0000", "#00FFFF"... |
| rotation | 60.000ths of a degree. |
| rowOffset |
|
| rowSize | Number of rows used by the image. |
| tailEnd |
|
| textContents | Text contents. |
| textStyles |
|
Code samples
Example #1
Release notes
- phpxlsx 6.0:
- new action.