Borders class
Defines the Borders Class. When the object is serialized out as xml, its qualified name is x:borders.
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Spreadsheet.Borders
Namespace: DocumentFormat.OpenXml.Spreadsheet
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
[ISO/IEC 29500-1 1st Edition]
borders (Borders)
This element contains borders formatting information, specifying all border definitions for all cells in the workbook.
[Example:In this example the first border definition specifies that there are no borders, the second definition specifies that a there is a thin bottom border and medium right border, and the third definition specifies that there is a double top border.
<borders count="3">
<border>
<left/>
<right/>
<top/>
<bottom/>
<diagonal/>
</border>
<border>
<left/>
<right style="medium">
<color indexed="64"/>
</right>
<top/>
<bottom style="thin">
<color indexed="64"/>
</bottom>
<diagonal/>
</border>
<border>
<left/>
<right/>
<top style="double">
<color auto="1"/>
</top>
<bottom/>
<diagonal/>
</border>
</borders>end example]
Parent Elements |
|---|
styleSheet (§18.8.39) |
Child Elements | Subclause |
|---|---|
border (Border) | §18.8.4 |
Attributes | Description |
|---|---|
count (Border Count) | Count of border elements. The possible values for this attribute are defined by the W3C XML Schema unsignedInt datatype. |
[Note: The W3C XML Schema definition of this element’s content model (CT_Borders) is located in §A.2. end note]
© ISO/IEC29500: 2008.