FirstRowHeader Class

First Row of Data Source Contains Column Names.When the object is serialized out as xml, its qualified name is w:fHdr.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.OnOffType
        DocumentFormat.OpenXml.Wordprocessing.FirstRowHeader

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

Syntax

'Declaration
Public Class FirstRowHeader _
    Inherits OnOffType
'Usage
Dim instance As FirstRowHeader
public class FirstRowHeader : OnOffType

Remarks

[ISO/IEC 29500-1 1st Edition]

17.14.14 fHdr (First Row of Data Source Contains Column Names)

This element specifies that a hosting application shall treat the first row of data in the specified external data source as a header row containing the names of each column in the data source, rather than data to populate mapped fields in a merged document. When present, this information shall not change the indices specified in the recipientData elements (§17.14.27), but shall indicate that the first row is not part of the mail merge when it is performed.

If this element is omitted, then the first row of the data source shall not be considered a header row when a mail merge is performed.

[Example: Consider a WordprocessingML source document that has been connected to an external data source whose first row of data is not data the hosting application is to populate mapped fields with, but rather contains column names for each column in the data source. This setting on the data source is specified using the following fragment of WordprocessingML:

<w:fHdr w:val="on" />

The fHdr element specifies that the data source's first row is a header row, rather than regular data to be used in the mail merge. end example]

Parent Elements

odso (§17.14.25)

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

FirstRowHeader Members

DocumentFormat.OpenXml.Wordprocessing Namespace