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

Result of format.state
NameTypeRequiredDescription
alignstringno
boldbooleanno
bulletsbooleanno
fontstringno
fontRefstringno
italicbooleanno
lineSpacinganyno
numberingbooleanno
painterbooleanno
sizenumberno
strikebooleanno
subscriptbooleanno
superscriptbooleanno
underlinebooleanno
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.