Compartir a través de


BarBorder Class

Paragraph Border Between Facing Pages.When the object is serialized out as xml, its qualified name is w:bar.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.BorderType
        DocumentFormat.OpenXml.Wordprocessing.BarBorder

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

Syntax

'Declaración
Public Class BarBorder _
    Inherits BorderType
'Uso
Dim instance As BarBorder
public class BarBorder : BorderType

Remarks

[ISO/IEC 29500-1 1ª edición]

17.3.1.4 bar (Paragraph Border Between Facing Pages)

This element specifies the border which can be displayed on the inside edge of the paragraph when the parent's section settings specify that the section shall be printed using mirrored margins using the mirrorMargins element (§17.15.1.57). [Note: This information is present in the WordprocessingML for the purposes of legacy document format compatibility, and it can be removed and/or ignored as required. end note]

If this element is omitted on a given paragraph, its value is determined by the setting previously set at any level of the style hierarchy (i.e. that previous setting remains unchanged). If this setting is never specified in the style hierarchy, then no bar border shall be applied to the current paragraph.

[Example: Consider the following paragraph's WordprocessingML definition for its paragraph borders:

<w:p>
  <w:pPr>
    <w:pBdr>
      <w:top w:val="single" w:sz="24" w:space="1" w:color="F2DCDB"
w:themeColor="accent2" w:themeTint="33" /> 
      <w:left w:val="single" w:sz="24" w:space="4" w:color="B97034"
w:themeColor="accent6" w:themeShade="BF" /> 
      <w:bottom w:val="single" w:sz="24" w:space="1" w:color="F2DCDB"
w:themeColor="accent2" w:themeTint="33" /> 
      <w:right w:val="single" w:sz="24" w:space="4" w:color="C3D69B"
w:themeColor="accent3" w:themeTint="99" /> 
      <w:bar w:val="single" w:sz="24" w:space="1" w:color="4F81BD"
w:themeColor="accent1" />
    </w:pBdr>
  </w:pPr>
  <w:r>
    <w:t>Sample paragraph.</w:t> 
  </w:r>
</w:p>

This paragraph has a single line bar border as defined by the bar element. end example]

Parent Elements

pBdr (§17.3.1.24)

This element's content model is defined by the common border properties definition in §17.3.4.

© ISO/IEC29500: 2008. Los extractos anteriores han sido traducidos del inglés al español por Microsoft (o algunos de sus agentes) e ISO no asume ningún tipo de responsabilidad por dichas traducciones.

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

Reference

BarBorder Members

DocumentFormat.OpenXml.Wordprocessing Namespace