ParagraphIsMoveToRevision Property

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

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

ExpandedSyntax

public bool IsMoveToRevision { get; }

Property Value

Type: Boolean

ExpandedExamples

Shows how to get paragraph that was moved (deleted/inserted) in Microsoft Word while change tracking was enabled.
Document doc = new Document(MyDir + "Revisions.docx");

// There are two sets of move revisions in this document
// One moves a small part of a paragraph, while the other moves a whole paragraph
// Paragraph.IsMoveFromRevision/IsMoveToRevision will only be true if a whole paragraph is moved, as in the latter case
ParagraphCollection paragraphs = doc.FirstSection.Body.Paragraphs;
for (int i = 0; i < paragraphs.Count; i++)
{
    if (paragraphs[i].IsMoveFromRevision)
        Console.WriteLine("The paragraph {0} has been moved (deleted).", i);
    if (paragraphs[i].IsMoveToRevision)
        Console.WriteLine("The paragraph {0} has been moved (inserted).", i);
}

ExpandedSee Also