Class HyperlinkCollector
Class HyperlinkCollector
名称: Aspose.Page.XPS.Features 集合: Aspose.Page.dll (25.4.0)
该类提供从 XPS 文档的当前页面收集过链接的 XPS 元素。
public static class HyperlinkCollector
Inheritance
继承人
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Methods
CollectHyperlinks(XpsDocument)
收集XPS元素与所有类型的超链接。
public static ICollection<xpshyperlinkelement> CollectHyperlinks(XpsDocument document)
Parameters
document
XpsDocument
XPS文件。
Returns
ICollection < XpsHyperlinkElement >
收藏包含 hyperlinked XPS 元素。
收藏Hyperlink(XpsDocument)
收集 XPS 元素与某种类型的超链接。
public static ICollection<xpshyperlinkelement> CollectHyperlinks<t>(XpsDocument document) where T : XpsHyperlinkTarget
Parameters
document
XpsDocument
XPS文件。
Returns
ICollection < XpsHyperlinkElement >
收藏包含 hyperlinked XPS 元素。
类型参数
T
Hyperlink 目标对象的类型。