AlwaysShowPlaceholderText Class

Use Custom XML Element Names as Default Placeholder Text.When the object is serialized out as xml, its qualified name is w:alwaysShowPlaceholderText.

Inheritance Hierarchy


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


Public Class AlwaysShowPlaceholderText _
    Inherits OnOffType
Dim instance As AlwaysShowPlaceholderText
public class AlwaysShowPlaceholderText : OnOffType


[ISO/IEC 29500-1 1st Edition] alwaysShowPlaceholderText (Use Custom XML Element Names as Default Placeholder Text)

This element specifies that each custom XML element specified using the customXml element within this document shall always show some form of in-document placeholder text presentation when it contains no run content. If the placeholder element (§ is present in the custom XML element's properties, then this is the placeholder text displayed and this effect has no effect. If the placeholder element is omitted, then the application shall use the name of the element to generate default placeholder text in its place.

If this element is omitted, then custom XML markup which does not contain a placeholder element within its properties shall not display any placeholder text.

[Example: Consider the following WordprocessingML fragment from the document settings:

<w:alwaysShowPlaceholderText w:val="true" />

The alwaysShowPlaceholderText element has a value of true, which specifies that placeholder text must be generated using the element's name if no placeholder text is present. If two custom XML elements are defined as follows:

<w:customXml w:name="spec" … >
<w:placeholder w:val="Type the name of the specification." />
<w:customXml w:name="spec" … >

The first custom XML element has placeholder text, and the second doesn't, so if this element is omitted, these two elements might be displayed as follows:


Notice that the second custom XML element has no placeholder text, and therefore is not displayed. However, when this element is present, then the application should generate default placeholder text in its place:


The application generated default placeholder text from the element name, resulting in a value of [spec] in the document. end example]

Parent Elements

settings (§

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


AlwaysShowPlaceholderText Members

DocumentFormat.OpenXml.Wordprocessing Namespace