public class HyperlinkCollector extends Object
The class provides collecting hyperlinked XPS elements from the current page of an XPS document.
| Modifier and Type | Method and Description |
|---|---|
static Collection<XpsHyperlinkElement> |
collectHyperlinks(XpsDocument document)
Collects XPS elements with hyperlinks of all types.
|
static <T extends XpsHyperlinkTarget> |
collectHyperlinks(XpsDocument document,
Class<T> cls)
Collects XPS elements with hyperlinks of a certain type.
|
public static Collection<XpsHyperlinkElement> collectHyperlinks(XpsDocument document)
Collects XPS elements with hyperlinks of all types.
document - The XPS document.public static <T extends XpsHyperlinkTarget> Collection<XpsHyperlinkElement> collectHyperlinks(XpsDocument document, Class<T> cls)
Collects XPS elements with hyperlinks of a certain type.
T - The type of the hyperlink target object.document - The XPS document.cls - The class object corresponding to the hyperlink target type to filter out.Copyright © 2025 Aspose. All Rights Reserved.