Aspose::Words::RevisionGroup class

RevisionGroup class

Represents a group of sequential Revision objects. To learn more, visit the Track Changes in a Document documentation article.

class RevisionGroup : public System::Object

Methods

MethodDescription
get_Author()Gets the author of this revision group.
get_RevisionType()Gets the type of revisions included in this group.
get_Text()Returns inserted/deleted/moved text or description of format change.
GetType() const override
Is(const System::TypeInfo&) const override
static Type()

Examples

Shows how to print info about a group of revisions in a document.

auto doc = MakeObject<Document>(MyDir + u"Revisions.docx");

ASSERT_EQ(7, doc->get_Revisions()->get_Groups()->get_Count());

for (const auto& group : doc->get_Revisions()->get_Groups())
{
    std::cout << String::Format(u"Revision author: {0}; Revision type: {1} \n\tRevision text: {2}", group->get_Author(), group->get_RevisionType(),
                                group->get_Text())
              << std::endl;
}

See Also