include_textboxes_footnotes_endnotes_in_stat property
Document.include_textboxes_footnotes_endnotes_in_stat property
Specifies whether to include textboxes, footnotes and endnotes in word count statistics.
@property
def include_textboxes_footnotes_endnotes_in_stat(self) -> bool:
...
@include_textboxes_footnotes_endnotes_in_stat.setter
def include_textboxes_footnotes_endnotes_in_stat(self, value: bool):
...
Examples
Shows how to include or exclude textboxes, footnotes and endnotes from word count statistics.
doc = aw.Document()
builder = aw.DocumentBuilder(doc)
builder.writeln("Lorem ipsum")
builder.insert_footnote(aw.notes.FootnoteType.FOOTNOTE, "sit amet")
# By default option is set to 'false'.
doc.update_word_count()
# Words count without textboxes, footnotes and endnotes.
self.assertEqual(2, doc.built_in_document_properties.words)
# Words count with textboxes, footnotes and endnotes.
doc.include_textboxes_footnotes_endnotes_in_stat = True
doc.update_word_count()
self.assertEqual(4, doc.built_in_document_properties.words)
See Also
- module aspose.words
- class Document