is_format_revision property
Paragraph.is_format_revision property
Returns true if formatting of the object was changed in Microsoft Word while change tracking was enabled.
@property
def is_format_revision(self) -> bool:
...
Examples
Shows how to check whether a paragraph is a format revision.
doc = aw.Document(file_name=MY_DIR + '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".
self.assertTrue(doc.first_section.body.first_paragraph.is_format_revision)
See Also
- module aspose.words
- class Paragraph