Word.CommentChangeType enum
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents how the comments in the event were changed.
Remarks
API set: WordApi BETA (PREVIEW ONLY)
Used by
Examples
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/99-preview-apis/comment-events.yaml
async function onChangedHandler(event: Word.CommentEventArgs) {
// Report how a comment changed, including edits to its text.
const edited: Word.CommentChangeType = Word.CommentChangeType.edited;
console.log(`Comment change: ${event.changeType}.`);
if (event.changeType === edited) {
console.log("The comment text was edited.");
}
await onEventHandler(event);
}
Fields
| edited = "edited" | A comment was edited. |
| none = "none" | No comment changed event is triggered. |
| reopened = "reopened" | A comment was reopened. |
| replyAdded = "replyAdded" | A reply was added. |
| replyDeleted = "replyDeleted" | A reply was deleted. |
| replyEdited = "replyEdited" | A reply was edited. |
| resolved = "resolved" | A comment was resolved. |