Comment Interface

Definition

Represents a single comment.

public interface class Comment
[System.Runtime.InteropServices.Guid("0002093D-0000-0000-C000-000000000046")]
public interface Comment
type Comment = interface
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

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

Returns a Application object that represents the Microsoft Word application.

Author

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

Contact

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

Creator

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

Date

Returns the date and time that the comment was entered.

Done

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

Index

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

Initial

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

IsInk

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

Parent

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

Range

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

Reference

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

Replies

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

Scope

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

ShowTip

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

Methods

Delete()

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

DeleteRecursively()

Deletes the specified comment and all replies associated with it.

Edit()

Opens the specified comment for editing.

Applies to