Partager via


RelationshipType.Id Propriété

Définition

Relation au composant

Représente l’attribut suivant dans le schéma : 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

Valeur de propriété

Retourne StringValue.

Attributs

Remarques

Spécifie l’ID de relation pour un composant spécifié.

La relation spécifiée doit correspondre au type requis par l’élément parent : http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer pour l’élément footerReference ; http://schemas.openxmlformats.org/officeDocument/2006/relationships/header pour l’élément headerReference ; http://schemas.openxmlformats.org/officeDocument/2006/relationships/font pour les embedBoldéléments , embedBoldItalic, embedItalicet embedRegular ; et http://schemas.openxmlformats.org/officeDocument/2006/relationships/printerSettings pour l’élément printerSettings .

Prenons l’exemple d’un élément XML qui a l’attribut suivant id :

<… r:id="rId10" />  

Le balisage spécifie que la partie de relation associée, avec l’ID rId1de relation , contient les informations de relation correspondantes pour l’élément XML parent.

Les valeurs possibles pour cet attribut sont définies par le ST_RelationshipId type simple.

S’applique à