ShowPlaceholderText Property

Microsoft Word Visual Basic

ShowPlaceholderText Property

Returns a Boolean that represents whether automatic placeholder text is displayed for XML elements in a document. True displays placeholder text. False hides placeholder text.

expression.ShowPlaceholderText

expression    Required. An expression that returns an XMLSchemaReferences collection.

Example

The following toggles the display of placeholder text in the active document.

    ActiveDocument.XMLSchemaReferences.ShowPlaceholderText = _
    Not ActiveDocument.XMLSchemaReferences.ShowPlaceholderText