Comments 接口

定义

对象的集合, Comment 这些对象代表所选内容、范围或文档中的注释。A collection of Comment objects that represent the comments in a selection, range, or document.

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

注解

使用 Comments 属性返回注释集合。Use the Comments property to return the Comments collection.

使用 Add(Range, Object) 方法可在指定范围添加注释。Use the Add(Range, Object) method to add a comment at the specified range.

使用注释index ),其中 index 是索引号,返回一个Comment对象。Use Comments(index), where index is the index number, to return a single Comment object. 索引号代表指定的选定内容、 范围或文档中注释的位置。The index number represents the position of the comment in the specified selection, range, or document.

属性

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[Int32]

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

Parent

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

ShowBy

返回或设置审阅者的批注显示在批注窗格中的名称。Returns or sets the name of the reviewer whose comments are shown in the comments pane.

方法

Add(Range, Object)

返回一个 Comment object 类型的对象,该对象代表添加到区域的注释。Returns a Comment object that represents a comment added to a range.

GetEnumerator()

适用于