OpenXmlPartContainer.AddHyperlinkRelationship OpenXmlPartContainer.AddHyperlinkRelationship OpenXmlPartContainer.AddHyperlinkRelationship Method

Definition

Overloads

AddHyperlinkRelationship(Uri, Boolean) AddHyperlinkRelationship(Uri, Boolean) AddHyperlinkRelationship(Uri, Boolean)

Adds a new hyperlink relationship.

AddHyperlinkRelationship(Uri, Boolean, String) AddHyperlinkRelationship(Uri, Boolean, String) AddHyperlinkRelationship(Uri, Boolean, String)

Adds a new hyperlink relationship.

AddHyperlinkRelationship(Uri, Boolean) AddHyperlinkRelationship(Uri, Boolean) AddHyperlinkRelationship(Uri, Boolean)

Adds a new hyperlink relationship.

public DocumentFormat.OpenXml.Packaging.HyperlinkRelationship AddHyperlinkRelationship (Uri hyperlinkUri, bool isExternal);
member this.AddHyperlinkRelationship : Uri * bool -> DocumentFormat.OpenXml.Packaging.HyperlinkRelationship
Public Function AddHyperlinkRelationship (hyperlinkUri As Uri, isExternal As Boolean) As HyperlinkRelationship

Parameters

hyperlinkUri
Uri Uri Uri

The URI of the hyperlink.

isExternal
Boolean Boolean Boolean

Is the hyperlink external to the OpenXmlPackage.

Returns

An HyperlinkRelationship with the relationship ID.

Exceptions

AddHyperlinkRelationship(Uri, Boolean, String) AddHyperlinkRelationship(Uri, Boolean, String) AddHyperlinkRelationship(Uri, Boolean, String)

Adds a new hyperlink relationship.

public DocumentFormat.OpenXml.Packaging.HyperlinkRelationship AddHyperlinkRelationship (Uri hyperlinkUri, bool isExternal, string id);
member this.AddHyperlinkRelationship : Uri * bool * string -> DocumentFormat.OpenXml.Packaging.HyperlinkRelationship
Public Function AddHyperlinkRelationship (hyperlinkUri As Uri, isExternal As Boolean, id As String) As HyperlinkRelationship

Parameters

hyperlinkUri
Uri Uri Uri

The URI of the hyperlink.

isExternal
Boolean Boolean Boolean

Is the hyperlink external to the OpenXmlPackage.

id
String String String

The desired relationship ID.

Returns

An HyperlinkRelationship with the relationship ID.

Exceptions

Thrown when "hyperlinkUri" or "id" is null reference.

Applies to