Behaviors Class

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

Inheritance Hierarchy


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


<ChildElementInfoAttribute(GetType(Behavior))> _
Public Class Behaviors _
    Inherits OpenXmlCompositeElement
Dim instance As Behaviors
public class Behaviors : OpenXmlCompositeElement


The following table lists the possible child types:

  • Behavior <w:behavior>

[ISO/IEC 29500-1 1st Edition]

17.12.2 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:behavior w:val="p" />
<w:behavior w:val="pg" />
<w:t>Sample entry.</w:t>

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


behavior (Entry Insertion Behavior)


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

© 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


Behaviors Members

DocumentFormat.OpenXml.Wordprocessing Namespace