# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Python-via-.NET doc = aw.Document() # Retrieve the style used for the first level of the TOC and change the formatting of the style. doc.styles.get_by_style_identifier(aw.StyleIdentifier.TOC1).font.bold = True