Hyperlinks 接口

定义

代表 Hyperlink 文档、区域或所选内容中的对象的集合。Represents the collection of Hyperlink objects in a document, range, or selection.

public interface class Hyperlinks : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("0002099C-0000-0000-C000-000000000046")]
public interface Hyperlinks : System.Collections.IEnumerable
type Hyperlinks = interface
    interface IEnumerable
Public Interface Hyperlinks
Implements IEnumerable
属性
实现

注解

使用、或对象的超链接属性 Document Range Selection 返回的超链接集合。Use the Hyperlinks property of a Document, Range, or Selection object to return the Hyperlinks collection.

使用 Add(Object, Object, Object, Object, Object, Object) 方法可创建超链接,并将其添加到超链接集合。Use the Add(Object, Object, Object, Object, Object, Object) method to create a hyperlink and add it to the Hyperlinks collection.

使用超链接index )(其中 index 是索引号)可返回文档、范围或所选内容中的单个Hyperlink对象。Use Hyperlinks(index), where index is the index number, to return a single Hyperlink object in a document, range, or selection.

Count在文档中,此集合的属性返回的只是正文中的项目数。The Count property for this collection in a document returns the number of items in the main story only. 若要统计其他部分中的项目数,请使用Range对象的集合。To count items in other stories, use the collection with the Range object.

属性

Application

返回一个 Application 对象,表示 Microsoft Word 应用程序。Returns an Application object that represents the Microsoft Word application.

Count

返回指定集合中的项目数。Returns the number of items in the specified collection.

Creator

返回一个 32 位整数,它指示在其中创建指定的对象的应用程序。Returns a 32-bit integer that indicates the application in which the specified object was created.

Item[Object]

返回集合中的单个对象。Returns an individual object in a collection.

Parent

返回一个对象,代表指定对象的父对象。Returns an object that represents the parent object of the specified object.

方法

_Add(Object, Object, Object)

仅供内部使用。Reserved for internal use.

Add(Object, Object, Object, Object, Object, Object)

返回一个 Hyperlink 对象,表示新添加到区域、选定内容或文档的超链接。Returns a Hyperlink object that represents a new hyperlink added to a range, selection, or document.

GetEnumerator()

适用于