Comment Comment Comment Interface

Definition

Represents a single comment.

public interface class Comment
[System.Runtime.InteropServices.Guid("0002093D-0000-0000-C000-000000000046")]
public interface Comment
Public Interface Comment
Attributes

Remarks

The Comment object is a member of the Comments collection. The Comments collection includes comments in a selection, range or document.

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.

Use the Add(Range, Object) method to add a comment at the specified range.

Use the Reference property to return the reference mark associated with the specified comment. Use the Range property to return the text associated with the specified comment.

Properties

Ancestor Ancestor Ancestor

For comments that are replies to existing comments, returns the parent Comment object; for new (top-level) comments, returns Nothing (a null reference (Nothing in Visual Basic).in C#) Read-only.

Application Application Application

Returns a Application object that represents the Microsoft Word application.

Author Author Author

This object, member, or enumeration is deprecated and is not intended to be used in your code.

Contact Contact Contact

Returns a CoAuthor object that represents the author of the specified comment. Read-only.

Creator Creator Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

Date Date Date

Returns the date and time that the comment was entered.

Done Done Done

Returns or sets a Boolean (bool in C#) whose value is true if the specified comment has been marked closed. Read-write.

Index Index Index

Returns an Integer that represents the position of an item in a collection.

Initial Initial Initial

This object, member, or enumeration is deprecated and is not intended to be used in your code.

IsInk IsInk IsInk

Returns a Boolean that represents whether a comment is a handwritten comment.

Parent Parent Parent

Returns an object that represents the parent object of the specified object.

Range Range Range

Returns a Range object that represents the portion of a document that's contained in the specified object.

Reference Reference Reference

Returns a Range object that represents a footnote, endnote, or comment reference mark.

Replies Replies Replies

Returns a Comments collection of Comment objects that are children of the specified comment. Read-only.

Scope Scope Scope

Returns a Range object that represents the range of text marked by the specified comment.

ShowTip ShowTip ShowTip

This object, member, or enumeration is deprecated and is not intended to be used in your code.

Methods

Delete() Delete() Delete()

This object, member, or enumeration is deprecated and is not intended to be used in your code.

DeleteRecursively() DeleteRecursively() DeleteRecursively()

Deletes the specified comment and all replies associated with it.

Edit() Edit() Edit()

Opens the specified comment for editing.

Applies to