Share via


ShowingPlaceholder Class

Current Contents Are Placeholder Text.When the object is serialized out as xml, its qualified name is w:showingPlcHdr.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.OnOffType
        DocumentFormat.OpenXml.Wordprocessing.ShowingPlaceholder

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

Syntax

'Declaration
Public Class ShowingPlaceholder _
    Inherits OnOffType
'Usage
Dim instance As ShowingPlaceholder
public class ShowingPlaceholder : OnOffType

Remarks

[ISO/IEC 29500-1 1st Edition]

17.5.2.39 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.

Thread Safety

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

See Also

Reference

ShowingPlaceholder Members

DocumentFormat.OpenXml.Wordprocessing Namespace