Word.ChangeTracking
Word.ChangeTracking is an object type of the Word module (Office.word(iframe)). 5 methods.
Remarks
- Module: Word ·
Office.word(iframe)· namespaceWord - Obtained from:
Document.getChangeTracking(id),Document.getChangeTrackings(),Body.getChangeTrackings(),Paragraph.getChangeTrackings(),Range.getChangeTrackings() - Every method returns a
Promise; signatures use TypeScript notation.
Methods
| Method | Description |
|---|---|
accept() | Accepts the change tracking entry. |
exists() | Checks whether the change tracking entry still exists. |
getId() | Returns the ID of the change tracking entry. |
getRange() | Returns the document range occupied by the change entry. |
reject() | Rejects the change tracking entry. |
Method details
accept()
Accepts the change tracking entry. - Confirms insertions, deletions, and formatting changes. An already processed entry is not changed again.
accept(): Promise<boolean>;
Returns
Promise<boolean> - true if accepted, false if there is no target
exists()
Checks whether the change tracking entry still exists. - An entry that has been accepted or rejected is considered no longer existing.
exists(): Promise<boolean>;
Returns
Promise<boolean> - true if it exists
getId()
Returns the ID of the change tracking entry.
getId(): Promise<string>;
Returns
Promise<string> - change tracking entry ID
getRange()
Returns the document range occupied by the change entry. - When several changes are grouped, the range spans from the first to the last; null if there is no target.
getRange(): Promise<Range>;
Returns
Promise<Range> - change range, null if there is no target
reject()
Rejects the change tracking entry. - Cancels insertions and deletions and restores the original formatting. An already processed entry is not changed again.
reject(): Promise<boolean>;
Returns
Promise<boolean> - true if rejected, false if there is no target