InlineStoryIsDeleteRevision Property

Returns true if this object was deleted in Microsoft Word while change tracking was enabled.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.7.0


public bool IsDeleteRevision { get; }

Property Value

Type: Boolean


Shows how to view revision-related properties of InlineStory nodes.
// Open a document that has revisions from changes being tracked
Document doc = new Document(MyDir + "Revision footnotes.docx");

// Get a collection of all footnotes from the document
List<Footnote> footnotes = doc.GetChildNodes(NodeType.Footnote, true).Cast<Footnote>().ToList();
Assert.AreEqual(5, footnotes.Count);

// If a node was inserted in Microsoft Word while changes were being tracked, this flag will be set to true

// If one node was moved from one place to another while changes were tracked,
// the node will be placed at the departure location as a "move to revision",
// and a "move from revision" node will be left behind at the origin, in case we want to reject changes
// Highlighting text and dragging it to another place with the mouse and cut-and-pasting (but not copy-pasting) both count as "move revisions"
// The node with the "IsMoveToRevision" flag is the arrival of the move operation, and the node with the "IsMoveFromRevision" flag is the departure point

// If a node was deleted while changes were being tracked, it will stay behind as a delete revision until we accept/reject changes

See Also