HeaderFooterReferenceType.Id 属性

定义

与部件的关系

表示架构中的以下属性:r:id

[DocumentFormat.OpenXml.SchemaAttr(19, "id")]
public DocumentFormat.OpenXml.StringValue Id { get; set; }
public DocumentFormat.OpenXml.StringValue Id { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(19, "id")]
public DocumentFormat.OpenXml.StringValue? Id { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("r:id")]
public DocumentFormat.OpenXml.StringValue? Id { get; set; }
public DocumentFormat.OpenXml.StringValue? Id { get; set; }
member this.Id : DocumentFormat.OpenXml.StringValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr(19, "id")>]
member this.Id : DocumentFormat.OpenXml.StringValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr("r:id")>]
member this.Id : DocumentFormat.OpenXml.StringValue with get, set
Public Property Id As StringValue

属性值

返回 StringValue

属性

注解

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

指定与指定部件的关系 ID。

指定的关系应与父元素所需的类型匹配:

  • http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer元素的footerReference

  • http://schemas.openxmlformats.org/officeDocument/2006/relationships/header元素的headerReference

  • http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontembedBold用于 、embedBoldItalicembedItalicembedRegular 元素

  • http://schemas.openxmlformats.org/officeDocument/2006/relationships/printerSettings元素的printerSettings

请考虑具有以下属性的 id XML 元素:

<… r:id="rId10" />  

标记指定具有关系 ID rId1 的关联关系部件,该部分包含父 XML 元素的相应关系信息。

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

适用于