Track changes and view, add, or edit comments Applies To Word for iPadWord for iPhone You can add or review changes and comments as you scroll through a document on your iPad or iPhone. WhenTrack Changesis turned on, Word uses a unique color to mark the changes made...
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/50-document/manage-tracked-changes.yaml // Accepts the first tracked change. await Word.run(async (context) => { const body = context.document.body; const trackedChanges = body.getTrac...
await Word.run(async (context) => { const body = context.document.body; const trackedChanges = body.getTrackedChanges(); trackedChanges.rejectAll(); console.log("Rejected all tracked changes."); }); toJSON() 重写JavaScript toJSON() 方法,以便在将 API 对象传递给 JSON.stringify()时提供...
Track Changes Cards are pop-up windows that appear when you left-click in a tracked change made by somebody else in a Word document. For the cards to appear, the revisions must be shown inline. From the Track Changes Card, you can accept or reject the change. See the example below: ...
(document.changeTrackingMode === Word.ChangeTrackingMode.trackMineOnly) {console.log("Only my changes are being tracked."); }elseif(document.changeTrackingMode === Word.ChangeTrackingMode.trackAll) {console.log("Everyone's changes are being tracked."); }else{console.log("No changes are ...
await Word.run(async (context) => { const document: Word.Document = context.document; document.load("changeTrackingMode"); await context.sync(); if (document.changeTrackingMode === Word.ChangeTrackingMode.trackMineOnly) { console.log("Only my changes are being tracked."); } else if (doc...
You can add a comment in a Word document, for example, when you are reviewing someone else’s work, if you want to write a note in your own document, or if you’d like to track issues for follow-up. Navigate to the location in the body text where ...
context.document.body.paragraphs.getFirst().lineSpacing = 20; await context.sync(); }); lineUnitAfter 指定段落后网格线中的间距量。 TypeScript 复制 lineUnitAfter: number; 属性值 number 注解 [ API 集:WordApi 1.1 ] 示例 TypeScript 复制 // Link to full sample: https://raw.githubuser...
Footnotes/endnotes— Get contents of footnotes/endnotes in the Word document. Track Changes— Get or set different track change modes, or get the reviewed text based on different modes. The following example shows how to set bold text and add a hyperlink to comments. ...
2. How to track changes in PDFs It’s not possible to track changes in PDF documents in the same way that you can track changes in Microsoft Word files or using advanced redlining software. Instead, revisions made to documents in a PDF will need to be saved as a separate document, ...