IXpsOMVisual::SetHyperlinkNavigateUri method (xpsobjectmodel.h)

Sets the destination URI of the visual's hyperlink.

Syntax

HRESULT SetHyperlinkNavigateUri(
  [in] IUri *hyperlinkUri
);

Parameters

[in] hyperlinkUri

The IUri interface that contains the destination URI of the visual's hyperlink.

Return value

If the method succeeds, it returns S_OK; otherwise, it returns an HRESULT error code.

Remarks

Setting an object's URI makes the object a hyperlink. When activated or clicked, the object will navigate to the destination that is specified by the URI in hyperlinkUri.

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header xpsobjectmodel.h

See also

IUri

IXpsOMVisual

XML Paper Specification