---
title: "format.state: Formatting State — Slide kit command — Kition"
description: "Answers the effective formatting at the selection (font, size, bold, italic, alignment, bullets, …), as the ribbon shows it."
canonical: "https://developer.kition.ai/docs/kits/slide/commands/format.state"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/slide/commands/format.state](https://developer.kition.ai/docs/kits/slide/commands/format.state)

# 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); reference: [Slide kit commands](https://developer.kition.ai/docs/kits/slide.md)
- 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 |  |

```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/slide-darwin-arm64@0.1.0 and the kit itself (slide_commands through @kition/cli@0.1.1, built from KitionAI/kition-slide@7ef3d11).
