BodyDiv Class

Data for HTML body Element.When the object is serialized out as xml, its qualified name is w:bodyDiv.

Inheritance Hierarchy


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


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


[ISO/IEC 29500-1 1st Edition] bodyDiv (Data for HTML body Element)

This element specifies that the current div element does not represent an HTML div element, but rather represents formatting properties on the HTML body element. This element shall specify that the properties specified by this container shall be written out onto the body element if this document is subsequently saved as HTML.

If this element is omitted, then the current div element does not represent an HTML body element. If both this element and the blockQuote element (§ are specified, then this element shall be ignored. If this element is specified on any div which is not the main div element for the document, then this element shall be ignored.

[Example: Consider a simple HTML document defined as follows:

<body style="margin-left:200px;margin-top:50px">
<p>Paragraph one.</p>
<blockquote style="border: 5px solid #00FFFF">
<p>Paragraph in a blockquote.</p>
<p>Paragraph two.</p>

When this document is saved in the WordprocessingML format, the information stored on the div, blockquote, and body elements is stored in the web setting part as follows:

<w:div w:id="1626542603">
<w:bodyDiv w:val="true" />

The bodyDiv element has a val attribute value of true, which specifies that the div element actually represents properties on the HTML body when this document is resaved as HTML. end example]

Parent Elements

div (§

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


BodyDiv Members

DocumentFormat.OpenXml.Wordprocessing Namespace