w:sdtPr (SDT Properties)
Contains control-type and metadata properties for a structured document tag.
Parent elements
Description
w:sdtPr contains the properties of a Structured Document Tag (w:sdt), defining its type, identity, and behaviour. It is defined in ECMA-376 Part 1 §17.5.2.38.
Common children include w:alias (display name), w:tag (programmatic name), w:id (unique integer), w:placeholder (hint text element), w:showingPlcHdr (show placeholder toggle), w:lock, w:dataBinding, and type-specific elements such as w:richText, w:text, w:date, w:comboBox, w:dropDownList, w:picture, w:docPart.
Attributes
| Attribute | Type | Possible Values | Description |
|---|---|---|---|
| (none) | — | — | All SDT properties are expressed via child elements. |
Examples
<w:sdtPr>
<w:alias w:val="Company Name"/>
<w:tag w:val="companyName"/>
<w:id w:val="12345"/>
<w:richText/>
</w:sdtPr>
new SdtProperties(
new SdtAlias { Val = "Company Name" },
new Tag { Val = "companyName" },
new SdtId { Val = 12345 },
new SdtContentRichText());