ApiHyperlink
表示 ApiHyperlink 类。
方法
| 方法 | 返回值 | 描述 |
|---|---|---|
| GetClassType | "hyperlink" | 返回 ApiHyperlink 类的类型。 |
| GetDisplayedText | string | 返回超链接显示文本。 |
| GetElement | ParagraphContent | 使用指定的位置返回超链接元素。 |
| GetElementsCount | number | 返回当前超链接中的元素数量。 |
| GetLinkedText | string | 返回超链接地址。 |
| GetRange | ApiRange | 返回表示指定超链接中所包含文档部分的 Range 对象。 |
| GetScreenTipText | string | 返回超链接的屏幕提示文本。 |
| SetDefaultStyle | boolean | 设置默认超链接样式。 |
| SetDisplayedText | boolean | 设置超链接显示文本。 |
| SetLink | boolean | 设置超链接地址。 |
| SetScreenTipText | boolean | 设置超链接的屏幕提示文本。 |
| ToJSON | JSON | 将 ApiHyperlink 对象转换为 JSON 对象。 |