Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Borders.When the object is serialized out as xml, its qualified name is x:borders.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Spreadsheet.Borders
Namespace: DocumentFormat.OpenXml.Spreadsheet
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
<ChildElementInfoAttribute(GetType(Border))> _
Public Class Borders _
Inherits OpenXmlCompositeElement
'Usage
Dim instance As Borders
[ChildElementInfoAttribute(typeof(Border))]
public class Borders : OpenXmlCompositeElement
Remarks
The following table lists the possible child types:
- Border <x:border>
[ISO/IEC 29500-1 1st Edition]
18.8.5 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.
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.