Aspose::Words::RevisionGroup class
Contents
[
Hide
]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
| Method | Description |
|---|---|
| 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 = System::MakeObject<Aspose::Words::Document>(get_MyDir() + u"Revisions.docx");
ASSERT_EQ(7, doc->get_Revisions()->get_Groups()->get_Count());
for (auto&& group : doc->get_Revisions()->get_Groups())
{
std::cout << System::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
- Namespace Aspose::Words
- Library Aspose.Words for C++