[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

text (Plain Text Structured Document Tag)

This element specifies that the parent structured document tag shall be a plain text box when displayed in the document.

This setting specifies that the behavior for this structured document tag shall be as follows:

Formatting applied to any part of this structured document tag's contents shall apply to its entire contents

As well, the structured document tag must satisfy the following restraints or the document shall be considered invalid:

The contents shall only be contain a single run (one set of formatting properties) with exceptions for soft carriage returns via the multiLine attribute on this element

The contents shall not contain more than a single paragraph or table cell and shall not contain a table row or table

[Example: Consider the following structured document tag:

<w:sdt>
<w:sdtPr>

<w:text/>
</w:sdtPr>

</w:sdt>

The text element in this structured document tag's properties specify that the type of structured document tag is a plain text box. end example]

Parent Elements

sdtPr2.5.2.37)

 

Attributes

Description

multiLine (Allow Soft Line Breaks)

Specifies whether soft line breaks may be added to the contents of this structured document tag when this document is modified. This setting shall not affect the ability of the structured document tag to display existing soft line breaks (which shall be preserved) and shall only affect the ability to add line breaks when the document is modified by an application.

 

If this attribute is omitted, then the parent plain text structured document control shall not allow soft line breaks to be added to its contents.

 

[Example: Consider the following structured document tag:

 

<w:sdt>
<w:sdtPr>

<w:text w:multiLine="true"/>
</w:sdtPr>

</w:sdt>

 

The multiLine attribute on the text element in this structured document tag's properties specify that an application may allow soft line breaks to be added to the run contents of the structured document tag. end example]

 

The possible values for this attribute are defined by the ST_OnOff simple type2.18.67).

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_SdtText">

   <attribute name="multiLine" type="ST_OnOff"/>

</complexType>