Class HyperlinkCollector
Class HyperlinkCollector
Namespace: Aspose.Page.XPS.Features
Assembly: Aspose.Page.dll (25.1.2)
该类用于从XPS文档的当前页面收集带超链接的XPS元素。
public static class HyperlinkCollector
继承
继承成员
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
方法
CollectHyperlinks(XpsDocument)
收集所有类型的带超链接的XPS元素。
public static ICollection<xpshyperlinkelement> CollectHyperlinks(XpsDocument document)
参数
document
XpsDocument
XPS文档。
返回值
ICollection<XpsHyperlinkElement>
包含带超链接的XPS元素的集合。
CollectHyperlinks<t>(XpsDocument)
收集某种类型的带超链接的XPS元素。
public static ICollection<xpshyperlinkelement> CollectHyperlinks<t>(XpsDocument document) where T : XpsHyperlinkTarget
参数
document
XpsDocument
XPS文档。
返回值
ICollection<XpsHyperlinkElement>
包含带超链接的XPS元素的集合。
类型参数
T
超链接目标对象的类型。