Summary
Retrieve layout and style properties of a table.- Operation ID:
tables.getProperties - API member path:
editor.doc.tables.getProperties(...) - Mutates document:
no - Idempotency:
idempotent - Supports tracked mode:
no - Supports dry run:
no - Deterministic target resolution:
yes
Expected result
Returns a TablesGetPropertiesOutput with direct table layout and style state, including style options, borders, default cell margins, and cell spacing when explicitly set.Input fields
Variant 1 (target.nodeType=“table”)
| Field | Type | Required | Description |
|---|---|---|---|
target | TableAddress | yes | TableAddress |
target.kind | "block" | yes | Constant: "block" |
target.nodeId | string | yes | |
target.nodeType | "table" | yes | Constant: "table" |
Variant 2 (required: nodeId)
| Field | Type | Required | Description |
|---|---|---|---|
nodeId | string | yes |
Example request
Output fields
| Field | Type | Required | Description | |
|---|---|---|---|---|
address | TableAddress | yes | TableAddress | |
address.kind | "block" | yes | Constant: "block" | |
address.nodeId | string | yes | ||
address.nodeType | "table" | yes | Constant: "table" | |
alignment | enum | no | "left", "center", "right" | |
autoFitMode | enum | no | "fixedWidth", "fitContents", "fitWindow" | |
borders | object | no | ||
borders.bottom | object \ | null | no | One of: object, null |
borders.insideH | object \ | null | no | One of: object, null |
borders.insideV | object \ | null | no | One of: object, null |
borders.left | object \ | null | no | One of: object, null |
borders.right | object \ | null | no | One of: object, null |
borders.top | object \ | null | no | One of: object, null |
cellSpacingPt | number | no | ||
defaultCellMargins | object | no | ||
defaultCellMargins.bottomPt | number | no | ||
defaultCellMargins.leftPt | number | no | ||
defaultCellMargins.rightPt | number | no | ||
defaultCellMargins.topPt | number | no | ||
direction | enum | no | "ltr", "rtl" | |
nodeId | string | yes | ||
preferredWidth | number | no | ||
styleId | string | no | ||
styleOptions | object | no | ||
styleOptions.bandedColumns | boolean | no | ||
styleOptions.bandedRows | boolean | no | ||
styleOptions.firstColumn | boolean | no | ||
styleOptions.headerRow | boolean | no | ||
styleOptions.lastColumn | boolean | no | ||
styleOptions.lastRow | boolean | no |
Example response
Pre-apply throws
TARGET_NOT_FOUND
Non-applied failure codes
- None
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema

