ShapeBaseIsMoveFromRevision Property |
Namespace: Aspose.Words.Drawing
// 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 + "Revision shape.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);