Comment Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기