HeaderFooterReferenceType.Type 属性

定义

type

表示架构中的以下属性: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)

属性值

返回 EnumValue<T>

属性

注解

使用此类时,ECMA 国际标准 ECMA-376 中的以下信息可能很有用。

指定目标关系 ID 指定的页眉或页脚的类型。 此类型确定显示当前页眉或页脚的页面 () 。

如果任何部分包含每个类型的单页眉或页脚以上,则应将文档视为不一致。

请考虑具有以下 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>  

生成的节有两个 类型的 first页脚,因此无效。

请考虑一个 WordprocessingML 部分,该节指定以下标头引用:

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

生成的部分应为第一页使用指定的页眉部分。

此属性的可能值由 ST_HdrFtr 简单类型定义。

适用于