HeaderFooterReferenceType.Type Property

type.Represents the attribte in schema: w:type

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

Syntax

'Declaration
<SchemaAttrAttribute(, "type")> _
Public Property Type As EnumValue(Of HeaderFooterValues)
    Get
    Set
'Usage
Dim instance As HeaderFooterReferenceType
Dim value As EnumValue(Of HeaderFooterValues)

value = instance.Type

instance.Type = value
[SchemaAttrAttribute(, "type")]
public EnumValue<HeaderFooterValues> Type { get; set; }

Property Value

Type: DocumentFormat.OpenXml.EnumValue<HeaderFooterValues>
Returns EnumValue<T>.

Remarks

The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.

Specifies the type of header or footer specified by the target relationship ID. This type determines the page(s) on which the current header or footer shall be displayed.

If any section contains more than a single header or footer of each type, then the document shall be considered non-conformant.

Consider a document with the following WordprocessingML:

<w:sectPr>
  …
  <w:footerReference r:id="rId6" w:type="first" />
  <w:footerReference r:id="rId7" w:type="first" />
  <w:footerReference r:id="rId10" w:type="even" />
  …
</w:sectPr>

The resulting section has two footers of type first, and therefore is invalid.

Consider a WordprocessingML section which specifies the following header reference:

<w:headerReference r:id="rId10" w:type="first" />

The resulting section shall use the specified header part for the first page.

The possible values for this attribute are defined by the ST_HdrFtr simple type.

See Also

Reference

HeaderFooterReferenceType Class

HeaderFooterReferenceType Members

DocumentFormat.OpenXml.Wordprocessing Namespace