<rPr>
(Run Properties For Structured Document Tag Contents)
This element specifies the set of run properties which shall be applied to the text entered into the parent structured document tag in replacement of placeholder text. When placeholder text is present in a structured document tag, its formatting is often different than the desired underlying formatting, and this element specifies the formatting which shall be used for non-placeholder text contents when they are initially added to the control.
If this element is not present, the inserted is unformatted, as with any other run of text - it shall not inherit the properties of the placeholder text.
<w:sdt> <w:sdtPr> <w:placeholder> <w:docPart w:val="TestPlaceholderDocPart"/> </w:placeholder> <w:showingPlcHdr/> <w:rPr> <w:rStyle w:val="UserName"/> </w:rPr> … </w:sdtPr> <w:sdtContent> <w:r> <w:rPr> <w:rStyle w:val="PlaceholderText"/> </w:rPr> <w:t>[Type Your Name Here]</w:t> </w:r> </w:sdtContent> </w:sdt>
This structured document tag specifies that its current contents are placeholder text via the <showingPlcHdr>
element (§2.5.2.38), and that text has the PlaceholderText
character style applied to it.
Now, assume that that style created grey shaded text (typical for placeholder text). This formatting would clearly not be desirable for any text entered into the structured document tag. Therefore, when this text is added, the <rPr>
element in the <sdtPr>
is used to store the formatting on the resulting text.
In this example, the text which initially populates the control shall be formatted with the UserName
character style. ]
Parent Elements |
---|
|
Child Elements |
Subclause |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_RPr">
<sequence>
<group ref="EG_RPrContent" minOccurs="0"/>
</sequence>
</complexType>