TableHeader Class

Defines the TableHeader Class.When the object is serialized out as xml, its qualified name is w:tblHeader.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.OnOffOnlyType
        DocumentFormat.OpenXml.Wordprocessing.TableHeader

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

Syntax

'Declaration
Public Class TableHeader _
    Inherits OnOffOnlyType
'Usage
Dim instance As TableHeader
public class TableHeader : OnOffOnlyType

Remarks

[ISO/IEC 29500-1 1st Edition]

17.4.50 tblHeader (Repeat Table Row on Every New Page)

This element specifies that the current table row shall be repeated at the top of each new page on which part of this table is displayed. This gives this table row the behavior of a 'header' row on each of these pages. This element can be applied to any number of rows at the top of the table structure in order to generate multi-row table headers.

If this element is omitted, this table row shall not be repeated on each new page on which the table is displayed. As well, if this row is not contiguously connected with the first row of the table (that is, if this table row is not either the first row, or all rows between this row and the first row are not marked as header rows) then this property shall be ignored.

[Example: Consider a table which must have its first row repeated on each new page, like the attribute listings in ISO/IEC 29500, for example:

DocumentFormat.OpenXml.Wordprocessing.TableHeader-

Notice that the first row in the table is repeated on the top of the second page. This requirement would be specified as follows in the WordprocessingML for that row:

<w:trPr>
  <w:tblHeader />
</w:trPr>

The tblHeader element specifies that this table row is repeated as a header row at the top of each page. end example]

Parent Elements

trPr (§17.4.82); trPr (§17.7.6.10); trPr (§17.7.6.11); trPr (§17.4.83)

This element’s content model is defined by the common boolean property definition in §17.17.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

TableHeader Members

DocumentFormat.OpenXml.Wordprocessing Namespace