ShapeBaseIsMoveToRevision Property
Returns true if this object was moved (inserted) in Microsoft Word while change tracking was enabled.

Namespace: Aspose.Words.Drawing
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.12
Syntax
public bool IsMoveToRevision { get; }

Property Value

Type: Boolean
Examples
Shows how to identify move revision shapes.
// Open a document that contains a move revision
// A move revision is when we, while changes are tracked, cut(not copy)-and-paste or highlight and drag text from one place to another
// If inline shapes are caught up in the text movement, they will count as move revisions as well
// Moving a floating shape will not count as a move revision
Document doc = new Document(MyDir + "Shape.Revisions.docx");

// The document has one shape that was moved, but shape move revisions will have two instances of that shape
// One will be the shape at its arrival destination and the other will be the shape at its original location
List<Shape> nc = doc.GetChildNodes(NodeType.Shape, true).Cast<Shape>().ToList();
Assert.AreEqual(2, nc.Count);

// This is the move to revision, also the shape at its arrival destination
Assert.False(nc[0].IsMoveFromRevision);
Assert.True(nc[0].IsMoveToRevision);

// This is the move from revision, which is the shape at its original location
Assert.True(nc[1].IsMoveFromRevision);
Assert.False(nc[1].IsMoveToRevision);
See Also