Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Word.ChangeTrackingVersion enum
- Package:
- word
Specify the current version or the original version of the text.
Remarks
Used by
- Word.Body: getReviewedText
- Word.ContentControl: getReviewedText
- Word.Paragraph: getReviewedText
- Word.Range: getReviewedText
Examples
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/50-document/manage-change-tracking.yaml
// Gets the reviewed text.
await Word.run(async (context) => {
const range: Word.Range = context.document.getSelection();
const before = range.getReviewedText(Word.ChangeTrackingVersion.original);
const after = range.getReviewedText(Word.ChangeTrackingVersion.current);
await context.sync();
console.log("Reviewed text (before):", before.value, "Reviewed text (after):", after.value);
});
Fields
| current = "Current" | |
| original = "Original" |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Office Add-ins
Feedback
Was this page helpful?
