RelationshipType.Id Property

Relationship to Part.Represents the attribte in schema: r:id

Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<SchemaAttrAttribute(, "id")> _
Public Property Id As StringValue
    Get
    Set
'Usage
Dim instance As RelationshipType
Dim value As StringValue

value = instance.Id

instance.Id = value
[SchemaAttrAttribute(, "id")]
public StringValue Id { get; set; }

Property Value

Type: DocumentFormat.OpenXml.StringValue
Returns StringValue.

Remarks

Specifies the relationship ID for a specified part.

The specified relationship shall match the type required by the parent element: https://schemas.openxmlformats.org/officeDocument/2006/relationships/footer for the footerReference element; https://schemas.openxmlformats.org/officeDocument/2006/relationships/header for the headerReference element; https://schemas.openxmlformats.org/officeDocument/2006/relationships/font for the embedBold, embedBoldItalic, embedItalic, and embedRegular elements; and https://schemas.openxmlformats.org/officeDocument/2006/relationships/printerSettings for the printerSettings element.

Consider an XML element which has the following id attribute:

<… r:id="rId10" />

The markup specifies that the associated relationship part, with relationship ID rId1, contains the corresponding relationship information for the parent XML element.

The possible values for this attribute are defined by the ST_RelationshipId simple type.

See Also

Reference

RelationshipType Class

RelationshipType Members

DocumentFormat.OpenXml.Wordprocessing Namespace