SmartTags 接口

定义

对象的集合 SmartTag ,该集合代表标记为包含识别类型信息的文档中的文本。A collection of SmartTag objects that represents the text in a document that is marked as containing recognized type information.

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

注解

SmartTags 集合包含文档或文档的文本范围中的所有智能标记。The SmartTags collection contains all the smart tags in a document or range of text within a document. Microsoft Word 使用识别器文件标记智能标记,并使用操作文件执行与智能标记相关的操作,例如链接到网站。Microsoft Word uses a recognizer file to label smart tags, and it uses an action file to execute actions related to the smart tags, such as linking to Web sites.

使用Item方法 SmartTags (或( index ),其中 index 代表智能标记的编号)返回单个SmartTag对象。Use the Item method— or SmartTags (index), where index represents the number of the smart tag— to return a single SmartTag object.

属性

Application

返回一个 Application 代表 Microsoft Word 应用程序的对象。Returns a 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(String, Object, Object)

获取一个 SmartTag 对象,该对象代表添加到文档中的新智能标记。Gets a SmartTag object that represents a new smart tag added to a document.

GetEnumerator()
SmartTagsByType(String)

返回一个 SmartTags 集合,该集合代表安装在用户计算机上的指定类型的所有智能标记。Returns a SmartTags collection that represents all the smart tags installed on a user's computer of the specified type.

适用于