How to get all revisions from a paragraph node in aspose word

How to get all revisions from a paragraph node in aspose word?

@vineeth.pv You can use code like the following to get revisions applied to the paragraph or to the child nodes inside the paragraph:

Document doc = new Document(@"C:\Temp\in.docx");

// Get the paragraph. For the demonstration the first paragraph is used.
Paragraph para = doc.FirstSection.Body.FirstParagraph;

// Get the revisions applied the the paragraph
List<Revision> revisions = doc.Revisions
    .Where(r => r.ParentNode == para || r.ParentNode.GetAncestor(NodeType.Paragraph) == para).ToList();