RelationshipType.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

属性

注解

指定指定部件的关系 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/font 对于 embedBoldembedBoldItalicembedItalicembedRegular 元素; http://schemas.openxmlformats.org/officeDocument/2006/relationships/printerSettings 对于 printerSettings 元素。

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

<… r:id="rId10" />  

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

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

适用于