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=doc)
builder.writeln('Lorem ipsum')
builder.insert_footnote(footnote_type=aw.notes.FootnoteType.FOOTNOTE, footnote_text='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)
doc.include_textboxes_footnotes_endnotes_in_stat = True
doc.update_word_count()
# Words count with textboxes, footnotes and endnotes.
self.assertEqual(4, doc.built_in_document_properties.words)
See Also
- module aspose.words
- class Document