---
title: "view.state: View State — Doc kit command — Kition"
description: "Answers the editor's view settings: view mode, zoom, panes, marks, ruler and gridlines."
canonical: "https://developer.kition.ai/docs/kits/doc/commands/view.state"
---

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

# view.state

**View State.** Answers the editor's view settings: view mode, zoom, panes, marks, ruler and gridlines.

- Kit: Doc 0.1.0 (.docx); reference: [Doc kit commands](https://developer.kition.ai/docs/kits/doc.md)
- Changes the document: no

## Parameters

None.

## Call through doc_run

```text
doc_run {
  "path": "<file>.docx",
  "steps": [{ "command": "view.state" }]
}
```

The required parameters, with placeholders for their types: not a tested example. doc_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `clipboardPane` | `boolean` | no |  |
| `commentsPane` | `boolean` | no |  |
| `darkMode` | `boolean` | no |  |
| `draw` | `object` | no |  |
| `fit` | `string` | no |  |
| `focusMode` | `boolean` | no |  |
| `gridlines` | `boolean` | no |  |
| `hideInk` | `boolean` | no |  |
| `marks` | `boolean` | no |  |
| `mode` | `string` | no |  |
| `multiPage` | `boolean` | no |  |
| `navPane` | `boolean` | no |  |
| `proofing` | `boolean` | no |  |
| `readMode` | `boolean` | no |  |
| `ruler` | `boolean` | no |  |
| `showMarkup` | `boolean` | no |  |
| `styleInspector` | `boolean` | no |  |
| `stylesPane` | `boolean` | no |  |
| `tableGridlines` | `boolean` | no |  |
| `trackChangesPane` | `boolean` | no |  |
| `webWidth` | `number` | no |  |
| `zoom` | `number` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "clipboardPane": {
      "type": "boolean"
    },
    "commentsPane": {
      "type": "boolean"
    },
    "darkMode": {
      "type": "boolean"
    },
    "draw": {
      "additionalProperties": true,
      "properties": {
        "highlighter": {
          "additionalProperties": true,
          "properties": {
            "color": {
              "items": {
                "type": "number"
              },
              "type": "array"
            },
            "width": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "mode": {
          "type": "string"
        },
        "pen": {
          "additionalProperties": true,
          "properties": {
            "color": {
              "items": {
                "type": "number"
              },
              "type": "array"
            },
            "width": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "pencil": {
          "additionalProperties": true,
          "properties": {
            "color": {
              "items": {
                "type": "number"
              },
              "type": "array"
            },
            "width": {
              "type": "number"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    },
    "fit": {
      "type": "string"
    },
    "focusMode": {
      "type": "boolean"
    },
    "gridlines": {
      "type": "boolean"
    },
    "hideInk": {
      "type": "boolean"
    },
    "marks": {
      "type": "boolean"
    },
    "mode": {
      "type": "string"
    },
    "multiPage": {
      "type": "boolean"
    },
    "navPane": {
      "type": "boolean"
    },
    "proofing": {
      "type": "boolean"
    },
    "readMode": {
      "type": "boolean"
    },
    "ruler": {
      "type": "boolean"
    },
    "showMarkup": {
      "type": "boolean"
    },
    "styleInspector": {
      "type": "boolean"
    },
    "stylesPane": {
      "type": "boolean"
    },
    "tableGridlines": {
      "type": "boolean"
    },
    "trackChangesPane": {
      "type": "boolean"
    },
    "webWidth": {
      "type": "number"
    },
    "zoom": {
      "type": "number"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/doc-darwin-arm64@0.1.0 and the kit itself (doc_commands through @kition/cli@0.1.1, built from KitionAI/kition-doc@41e14a8).
