共用方式為


TableRow Class

Table Row.When the object is serialized out as xml, its qualified name is a:tr.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.TableRow

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(TableCell))> _
<ChildElementInfoAttribute(GetType(ExtensionList))> _
Public Class TableRow _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As TableRow
[ChildElementInfoAttribute(typeof(TableCell))]
[ChildElementInfoAttribute(typeof(ExtensionList))]
public class TableRow : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • TableCell <a:tc>

  • ExtensionList <a:extLst>

[ISO/IEC 29500-1 1st Edition]

21.1.3.18 tr (Table Row)

This element defines a row in a table. A row as defined in a table is simply a listing of table cells (§21.1.3.16). There is a table row element defined for every row in the table.

[Example: Consider the following example of a tr within DrawingML:

<a:tr h="774700">
<a:tc>
<a:txBody>
<a:bodyPr/>
<a:lstStyle/>
<a:p>
<a:endParaRPr lang="en-US" dirty="0"/>
</a:p>
</a:txBody>
<a:tcPr/>
</a:tc>
…
</a:tr>

In this example, we see a table row defined with an example table cell (§21.1.3.16) defined within it. The height of the row has been specified and in real use, there is a table cell defined in this row for each grid column (§21.1.3.2) defined in the table. end example]

Parent Elements

tbl (§21.1.3.13)

Child Elements

Subclause

extLst (Extension List)

§20.1.2.2.15

tc (Table Cell)

§21.1.3.16

Attributes

Description

h (Height)

Defines the height of the row in the table.

The possible values for this attribute are defined by the ST_Coordinate simple type (§20.1.10.16).

[Note: The W3C XML Schema definition of this element’s content model (CT_TableRow) is located in §A.4.1. 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.

See Also

Reference

TableRow Members

DocumentFormat.OpenXml.Drawing Namespace