-
Notifications
You must be signed in to change notification settings - Fork 517
word sdt
zmworm edited this page Apr 29, 2026
·
50 revisions
Structured Document Tags (content controls) for forms and structured content.
Path: /body/sdt[N]
- add - Add content controls
Returns: alias, tag, lock, id, sdtType, items, text, childCount
officecli get report.docx /body/sdt[1]| Property | Description |
|---|---|
alias/name
|
Display name |
tag |
Tag identifier |
lock |
Lock mode |
text |
Content text |
officecli set report.docx /body/sdt[1] --prop alias="Full Name" --prop tag="name_field"
officecli set report.docx /body/sdt[1] --prop text="Default value"Query content controls using the sdt or contentcontrol element type.
officecli query report.docx sdt
officecli query report.docx contentcontrolofficecli remove report.docx /body/sdt[1]Based on OfficeCLI v1.0.64