Slide kit command
format.state
Formatting State
Answers the effective formatting at the selection (font, size, bold, italic, alignment, bullets, …), as the ribbon shows it.
- Kit
- Slide 0.1.0 (.kslide and .pptx)
- Changes the document
- no
Parameters
None.
Call through slide_run
text
slide_run {
"path": "<file>.pptx",
"steps": [{ "command": "format.state" }]
}The required parameters, with placeholders for their types: not a tested example. slide_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
align | string | no | |
bold | boolean | no | |
bullets | boolean | no | |
font | string | no | |
fontRef | string | no | |
italic | boolean | no | |
lineSpacing | any | no | |
numbering | boolean | no | |
painter | boolean | no | |
size | number | no | |
strike | boolean | no | |
subscript | boolean | no | |
superscript | boolean | no | |
underline | boolean | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"align": {
"type": "string"
},
"bold": {
"type": "boolean"
},
"bullets": {
"type": "boolean"
},
"font": {
"type": "string"
},
"fontRef": {
"type": "string"
},
"italic": {
"type": "boolean"
},
"lineSpacing": {},
"numbering": {
"type": "boolean"
},
"painter": {
"type": "boolean"
},
"size": {
"type": "number"
},
"strike": {
"type": "boolean"
},
"subscript": {
"type": "boolean"
},
"superscript": {
"type": "boolean"
},
"underline": {
"type": "boolean"
}
},
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (slide_commands through @kition/[email protected], built from KitionAI/kition-slide@7ef3d11). As data: commands.jsonl.