Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SdtPlaceholder class

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

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

public class SdtPlaceholder : OpenXmlCompositeElement

[ISO/IEC 29500-1 1st Edition]

placeholder (Structured Document Tag Placeholder Text)

This element specifies the placeholder text which should be displayed when this structured document tag's run contents are empty, the associated mapped XML element is empty as specified via the dataBinding element (§ or the showingPlcHdr element (§ is set in the structured document tag's properties. The placeholder text which shall be shown is itself specified via the child element docPart.

If this element is omitted, then five non-breaking spaces shall be used as the default placeholder text for this structured document tag.

[Example: Consider a structured document tag defined as follows:

      <w:docPart w:val="DefaultPlaceholder_22610170" /> 
    …  </w:sdtPr>
    …  </w:sdtContent>

This structured document tag specifies through the placeholder element that its placeholder text must be specified in the document part of type bbPlcHdr whose name is equal to DefaultPlaceholder_22610170. end example]

Parent Elements

sdtPr (§

Child Elements


docPart (Document Part Reference)


[Note: The W3C XML Schema definition of this element’s content model (CT_Placeholder) is located in §A.1. end note]

© 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.
© 2015 Microsoft