HeaderFooterReferenceType.Type 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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
简单类型定义。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈