HeaderFooterReferenceType.Type Property

Definition

type

Represents the following attribute in the schema: w:type

[DocumentFormat.OpenXml.SchemaAttr(23, "type")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.HeaderFooterValues> Type { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.HeaderFooterValues> Type { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(23, "type")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.HeaderFooterValues>? Type { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("w:type")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.HeaderFooterValues>? Type { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.HeaderFooterValues>? Type { get; set; }
member this.Type : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.HeaderFooterValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr(23, "type")>]
member this.Type : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.HeaderFooterValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr("w:type")>]
member this.Type : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.HeaderFooterValues> with get, set
Public Property Type As EnumValue(Of HeaderFooterValues)

Property Value

Returns EnumValue<T>.

Attributes

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.

Applies to