Edit

Share via


Comment Interface

Definition

Represents a cell comment.

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

Remarks

The Comment object is a member of the Comments collection.

Use the Comment property to return a Comment object.

Use Comments(index), where index is the comment number, to return a single comment from the Comments collection.

Use the AddComment(Object) method to add a comment to a range.

Properties

Application

Returns an Application object that represents the Microsoft Excel application.

Author

Returns or sets the author of the comment.

Creator

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

Parent

Returns the parent object for the specified object.

Shape

Returns a Shape object that represents the shape attached to the specified comment.

Visible

Determines whether the object is visible.

Methods

Delete()

Deletes the object.

Next()

Returns a Comment object that represents the next comment.

Previous()

Returns a Comment object that represents the previous comment.

Text(Object, Object, Object)

Sets comment text.

Applies to