ShowingPlaceholder class

Office 2013 and later

Defines the ShowingPlaceholder Class. When the object is serialized out as xml, its qualified name is w:showingPlcHdr.

Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

No code example is currently available or this language may not be supported.

[ISO/IEC 29500-1 1st Edition]

showingPlcHdr (Current Contents Are Placeholder Text)

This element specifies whether the content of the sdtContent element (§17.5.2.34; §17.5.2.33; §17.5.2.35; §17.5.2.36) for the parent structured document tag shall be interpreted to contain placeholder text for this structured document tag (as opposed to regular text contents within the structured document tag). If this element is present and set to true, this state shall be resumed (showing placeholder text) upon opening this document.

If this element is omitted, then the structured document tag shall not be interpreted to be showing placeholder text when the document is displayed.

[Example: Consider the following structured document tag:

<w:sdt>
  <w:sdtPr>
    <w:showingPlcHdr/>
    …    <w:richText/>
  </w:sdtPr>
  <w:sdtContent>
    <w:r>
      <w:t>[Type your name here]</w:t>
    </w:r>
 </w:sdtContent>
</w:sdt>

This structured document tag has run contents which read [Type your name here], which would typically be interpreted as the current contents of the structured document tag. However, since the showingPlcHdr element has been specified in the structured document tag's properties, this content must instead be interpreted as the placeholder text for the structured document tag. end example]

Parent Elements

sdtPr (§17.5.2.38)

This element’s content model is defined by the common boolean property definition in §17.17.4.

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: