Export (0) Print
Expand All

DivBorder class

Set of Borders for HTML div. When the object is serialized out as xml, its qualified name is w:divBdr.

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

[ChildElementInfoAttribute(typeof(TopBorder))]
[ChildElementInfoAttribute(typeof(LeftBorder))]
[ChildElementInfoAttribute(typeof(BottomBorder))]
[ChildElementInfoAttribute(typeof(RightBorder))]
public class DivBorder : OpenXmlCompositeElement

[ISO/IEC 29500-1 1st Edition]

divBdr (Set of Borders for HTML div)

This element specifies the set of borders for the boundaries of the current HTML div, body, or blockquote element, using the four border types defined by its child elements.

If this element is omitted, then there shall be no borders associated with the current HTML v, body, or blockquote element.

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

<html>
  <body>
    <div style=" border-left-style:solid; border-right-style:groove; border-right-width:3px; border-top-style:dashed; border-top-width:3px; border-bottom-style:outset; border-bottom-width:3px">
      <p>paragraph of text</p>
    </div>
  </body>
</html>

This HTML would therefore normally appear as follows (image scaled appropriately):

Now, when this document is saved in the WordprocessingML format, the information stored on the div elements is stored in the web setting part as follows:

<w:divs>
  <w:div w:id="1785730240">
    …    <w:divBdr>
      <w:top w:val="dashed" w:sz="18" w:space="7" w:color="auto" />
      <w:left w:val="single" w:sz="24" w:space="4" w:color="auto" />
      <w:bottom w:val="outset" w:sz="18" w:color="auto" />
      <w:right w:val="threeDEngrave" w:sz="6" w:color="auto" />
    </w:divBdr>
  </w:div>
</w:divs>

The divBdr element specifies border information about the single HTML div structure in the document. end example]

Parent Elements

div (§17.15.2.6)

Child Elements

Subclause

bottom (Bottom Border for HTML div)

§17.15.2.4

left (Left Border for HTML div)

§17.15.2.21

right (Right Border for HTML div)

§17.15.2.36

top (Top Border for HTML div)

§17.15.2.44

[Note: The W3C XML Schema definition of this element’s content model (CT_DivBdr) 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:
© 2015 Microsoft