Aspose::Words::Revision Class Reference

Represents a revision (tracked change) in a document node or style. Use Aspose::Words::Revision::get_RevisionType to check the type of this revision. More...

#include "Aspose.Words.Cpp/Model/Revisions/Revision.h"

Inherits Object.

Public Member Functions

System::String get_Author ()
 Gets or sets the author of this revision. Can not be empty string or null. More...
 
void set_Author (System::String value)
 Setter for Aspose::Words::Revision::get_Author. More...
 
System::DateTime get_DateTime ()
 Gets or sets the date/time of this revision. More...
 
void set_DateTime (System::DateTime value)
 Setter for Aspose::Words::Revision::get_DateTime. More...
 
Aspose::Words::RevisionType get_RevisionType () const
 Gets the type of this revision. More...
 
System::SharedPtr< Aspose::Words::Nodeget_ParentNode ()
 Gets the immediate parent node (owner) of this revision. This property will work for any revision type other than Aspose::Words::RevisionType::StyleDefinitionChange. More...
 
System::SharedPtr< Aspose::Words::Styleget_ParentStyle ()
 Gets the immediate parent style (owner) of this revision. This property will work for only for the Aspose::Words::RevisionType::StyleDefinitionChange revision type. More...
 
System::SharedPtr< Aspose::Words::RevisionGroupget_Group ()
 Gets the revision group. Returns null if the revision does not belong to any group. More...
 
void Accept ()
 Accepts this revision. More...
 
void Reject ()
 Reject this revision. More...
 

Detailed Description

Represents a revision (tracked change) in a document node or style. Use Aspose::Words::Revision::get_RevisionType to check the type of this revision.

Member Function Documentation

◆ Accept()

void Aspose::Words::Revision::Accept ( )

Accepts this revision.

◆ get_Author()

System::String Aspose::Words::Revision::get_Author ( )

Gets or sets the author of this revision. Can not be empty string or null.

◆ get_DateTime()

System::DateTime Aspose::Words::Revision::get_DateTime ( )

Gets or sets the date/time of this revision.

◆ get_Group()

System::SharedPtr<Aspose::Words::RevisionGroup> Aspose::Words::Revision::get_Group ( )

Gets the revision group. Returns null if the revision does not belong to any group.

Revision has no group if revision type is RevisionType.StyleDefinitionChange or if the revision is not longer exist in document context (accepted/rejected).

◆ get_ParentNode()

System::SharedPtr<Aspose::Words::Node> Aspose::Words::Revision::get_ParentNode ( )

Gets the immediate parent node (owner) of this revision. This property will work for any revision type other than Aspose::Words::RevisionType::StyleDefinitionChange.

If this revision relates to change of Style formatting, use Aspose::Words::Revision::get_ParentStyle instead.

◆ get_ParentStyle()

System::SharedPtr<Aspose::Words::Style> Aspose::Words::Revision::get_ParentStyle ( )

Gets the immediate parent style (owner) of this revision. This property will work for only for the Aspose::Words::RevisionType::StyleDefinitionChange revision type.

If this revision relates to changes on document nodes, use Aspose::Words::Revision::get_ParentNode instead.

◆ get_RevisionType()

Aspose::Words::RevisionType Aspose::Words::Revision::get_RevisionType ( ) const

Gets the type of this revision.

◆ Reject()

void Aspose::Words::Revision::Reject ( )

Reject this revision.

◆ set_Author()

void Aspose::Words::Revision::set_Author ( System::String  value)

◆ set_DateTime()

void Aspose::Words::Revision::set_DateTime ( System::DateTime  value)