Share via


InsideHorizontalBorder Class

Table Inside Horizontal Edges Border.When the object is serialized out as xml, its qualified name is w:insideH.

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class InsideHorizontalBorder _
    Inherits BorderType
'Usage
Dim instance As InsideHorizontalBorder
public class InsideHorizontalBorder : BorderType

Remarks

[ISO/IEC 29500-1 1st Edition]

17.4.23 insideH (Table Inside Horizontal Edges Border)

This element specifies the border which shall be displayed on all horizontal table cell borders which are not on an outmost edge of the parent table (all horizontal borders which are not the topmost or bottommost border). The appearance of this table cell border in the document shall be determined by the following settings:

  • The display of the border on interior edges is subject to the conflict resolution algorithm defined by the tcBorders element (§17.4.67) and the tblBorders element (§17.4.40;§17.4.39)

If this element is omitted, then the inside horizontal borders of this table shall have the border specified by the associated table style. If no inside horizontal edge border is specified in the style hierarchy, then this table shall not have an inside horizontal edge border.

[Example: Consider a table in which the table specifies a border on all interior horizontal and vertical edges, as follows:

R1C1

R1C2

R2C1

R2C2

This interior horizontal cell border is specified using the following WordprocessingML:

<w:tblPr>
<w:tblBorders>
<w:insideH w:val="doubleWave" w:sz="6" w:space="0" w:color="92D050"/>
<w:insideV w:val="doubleWave" w:sz="6" w:space="0" w:color="92D050"/>
</w:tblBorders>
…
</w:tblPr>

The insideH element specifies a ¾ point border of type doubleWave. end example]

Parent Elements

tblBorders (§17.4.39); tblBorders (§17.4.40)

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

[ISO/IEC 29500-1 1st Edition]

17.4.24 insideH (Table Cell Inside Horizontal Edges Border)

This element specifies the border which shall be displayed on all interior horizontal edges of the current group of table cells. [Note: Although individual table cells have no concept of an internal edge, which would render this property useless in most cases, it is used to determine the cell borders to apply to a specific group of cells as part of table conditional formatting in a table style, for example, the inside horizontal edges on the set of cells in the first column. end note]

The appearance of this table cell border in the document shall be determined by the following settings:

  • If the net tblCellSpacing element value (§17.4.45;§17.4.44;§17.4.46) applied to the cell is non-zero, then the cell border shall always be displayed

  • Otherwise, the display of the border is subject to the conflict resolution algorithm defined by the tcBorders element (§17.4.67) and the tblBorders element (§17.4.40;§17.4.39)

If this element is omitted, then the specified conditional formatting on the table shall not change the current set of internal edge borders on its set of table cells (i.e. their current setting shall remain unchanged).

[Example: Consider a table in which the conditional formatting on the first column specified in the associated table style specifies a double line red cell border for all internal horizontal lines as follows:

DocumentFormat.OpenXml.Wordprocessing.InsideHorizo

This inner horizontal edge cell border is specified using the following WordprocessingML:

<w:tblStylePr w:type="firstCol">
<w:tcPr>
<w:tcBorders>
<w:insideH w:val="double" w:sz="4" w:space="0" w:color="FF0000"/>
</w:tcBorders>
</w:tcPr>
</w:tblStylePr>

The insideH element specifies a ¼ point border of type double. end example]

Parent Elements

tcBorders (§17.4.67)

This element’s content model is defined by the common border properties definition in §17.3.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

Reference

InsideHorizontalBorder Members

DocumentFormat.OpenXml.Wordprocessing Namespace