Aspose::Words::Paragraph::get_IsFormatRevision method

Paragraph::get_IsFormatRevision method

Returns true if formatting of the object was changed in Microsoft Word while change tracking was enabled.

bool Aspose::Words::Paragraph::get_IsFormatRevision()

Examples

Shows how to check whether a paragraph is a format revision.

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

// This paragraph is a "Format" revision, which occurs when we change the formatting of existing text
// while tracking revisions in Microsoft Word via "Review" -> "Track changes".
ASSERT_TRUE(doc->get_FirstSection()->get_Body()->get_FirstParagraph()->get_IsFormatRevision());

See Also