Class HyperlinkCollector

Class HyperlinkCollector

Namespace: Aspose.Page.XPS.Features
Assembly: Aspose.Page.dll (25.4.0)

The class provides collecting hyperlinked XPS elements from the current page of an XPS document.

public static class HyperlinkCollector

Inheritance

object HyperlinkCollector

Inherited Members

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Methods

CollectHyperlinks(XpsDocument)

Collects XPS elements with hyperlinks of all types.

public static ICollection<xpshyperlinkelement> CollectHyperlinks(XpsDocument document)

Parameters

document XpsDocument

The XPS document.

Returns

ICollection < XpsHyperlinkElement &gt;

The collection containing hyperlinked XPS elements.

CollectHyperlinks<t>(XpsDocument)

Collects XPS elements with hyperlinks of a certain type.

public static ICollection<xpshyperlinkelement> CollectHyperlinks<t>(XpsDocument document) where T : XpsHyperlinkTarget

Parameters

document XpsDocument

The XPS document.

Returns

ICollection < XpsHyperlinkElement &gt;

The collection containing hyperlinked XPS elements.

Type Parameters

T

The type of the hyperlink target object. </t>

 English