Behaviors class

Office 2013 and later

Entry Insertion Behaviors. When the object is serialized out as xml, its qualified name is w:behaviors.

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

[ChildElementInfoAttribute(typeof(Behavior))]
public class Behaviors : OpenXmlCompositeElement

[ISO/IEC 29500-1 1st Edition]

behaviors (Entry Insertion Behaviors)

This element specifies the set of behaviors which shall be applied to the contents of the parent glossary document entry (§17.12.5) when it is added to the main document story of a WordprocessingML document. Since multiple behaviors can be specified for a single part, the sum total of all behaviors shall be used to insert the parent entry into the contents of the WordprocessingML document.

[Example: Consider the WordprocessingML fragment for a glossary document entry containing a single run, defined as follows:

<w:docPart>
  <w:docPartPr>
    <w:behaviors>
      <w:behavior w:val="p" />
      <w:behavior w:val="pg" />
    </w:behaviors>
    …  </w:docPartPr>
  <w:docPartBody>
    <w:p>
      <w:r>
        <w:t>Sample entry.</w:t>
      </w:r>
    </w:p>
  </w:docPartBody>
</w:docPart>

The behaviors element contains the set of behaviors which must be applied to this entry when it is inserted into the document, in this case:

  • The entry must be inserted into its own paragraph in the document

  • The entry must be inserted onto a new page in the document (i.e. it must be preceded by a page break)

end example]

Parent Elements

docPartPr (§17.12.7)

Child Elements

Subclause

behavior (Entry Insertion Behavior)

§17.12.1

[Note: The W3C XML Schema definition of this element’s content model (CT_DocPartBehaviors) 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.
Show: