DocumentRevisionsView Property
Gets or sets a value indicating whether to work with the original or revised version of a document.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.12
Syntax
public RevisionsView RevisionsView { get; set; }

Property Value

Type: RevisionsView
Remarks
The default value is Original.
Examples
Shows how to get revised version of list label and list level formatting in a document.
Document doc = new Document(MyDir + "GetRevisedVersionOfDocument.docx");
doc.UpdateListLabels();

// Switch to the revised version of the document
doc.RevisionsView = RevisionsView.Final;

foreach (Revision revision in doc.Revisions)
{
    if (revision.ParentNode.NodeType == NodeType.Paragraph)
    {
        Paragraph paragraph = (Paragraph)revision.ParentNode;

        if (paragraph.IsListItem)
        {
            // Print revised version of LabelString and ListLevel
            Console.WriteLine(paragraph.ListLabel.LabelString);
            Console.WriteLine(paragraph.ListFormat.ListLevel);
        }
    }
}
See Also