-
Notifications
You must be signed in to change notification settings - Fork 190
ppt table get
zmworm edited this page Apr 19, 2026
·
47 revisions
Returned attributes when getting a table and its child elements.
Path: /slide[N]/table[M]
| Key | Type | Description |
|---|---|---|
name |
string | Table name |
rows |
integer | Number of rows |
cols |
integer | Number of columns |
tableStyleId |
string | Table style GUID |
x |
integer | Horizontal position (EMU) |
y |
integer | Vertical position (EMU) |
width |
integer | Width (EMU) |
height |
integer | Height (EMU) |
Path: /slide[N]/table[M]/tr[R]
| Key | Type | Description |
|---|---|---|
height |
integer | Row height (EMU) |
Path: /slide[N]/table[M]/tr[R]/tc[C]
| Key | Type | Description |
|---|---|---|
fill |
string | Cell fill color (hex) |
border.top |
string | Top border (e.g. 1pt solid #000000) |
border.top.color |
string | Top border color (hex RGB) |
border.top.width |
string | Top border width |
border.top.dash |
string | Top border dash style |
border.bottom |
string | Bottom border |
border.bottom.color |
string | Bottom border color (hex RGB) |
border.bottom.width |
string | Bottom border width |
border.bottom.dash |
string | Bottom border dash style |
border.left |
string | Left border |
border.left.color |
string | Left border color (hex RGB) |
border.left.width |
string | Left border width |
border.left.dash |
string | Left border dash style |
border.right |
string | Right border |
border.right.color |
string | Right border color (hex RGB) |
border.right.width |
string | Right border width |
border.right.dash |
string | Right border dash style |
valign |
string | Vertical alignment (top, middle, bottom) |
align / alignment
|
string | Horizontal text alignment (left, center, right) |
font |
string | Font name |
size |
number | Font size (pt) |
bold |
boolean | Bold text |
italic |
boolean | Italic text |
underline |
string | Underline style |
strike |
string | Strikethrough style |
color |
string | Font color (hex) |
charspacing |
number | Character spacing (points) |
baseline |
string | Baseline shift |
officecli get slides.pptx /slide[1]/table[1] --depth 3/slide[1]/table[1] (Table) (3 children)
name: Table 1
rows: 3
cols: 4
tableStyleId: {5C22544A-7EE6-4342-B048-85BDC9FD1C3A}
x: 685800
y: 1524000
width: 7772400
height: 2743200
/slide[1]/table[1]/tr[1] (Row) (4 children)
height: 914400
/slide[1]/table[1]/tr[1]/tc[1] (Cell)
fill: #4472C4
font: Calibri
size: 14
bold: true
color: #FFFFFF
alignment: center
valign: middle
border.bottom: 1pt solid #2E5FA1
/slide[1]/table[1]/tr[1]/tc[2] (Cell)
fill: #4472C4
font: Calibri
size: 14
bold: true
color: #FFFFFF
alignment: center
valign: middle
...
/slide[1]/table[1]/tr[2] (Row) (4 children)
height: 914400
...
Based on OfficeCLI v1.0.53