![gembox docx police advance spacing gembox docx police advance spacing](https://1.bp.blogspot.com/-W3IAqkG0rjU/XXh3DF5jgII/AAAAAAAAAQM/NXnqUEykgBkjDUW4SXB5H5dBFgmgRjOCgCLcBGAsYHQ/s320/hqdefault.jpg)
This definition may imply that the TableStyle can only define table formatting properties, however a table style is much more powerful and it allows you to define following formatting properties: TableStyles are Style definitions which apply to the contents of zero or more Tables within a DocumentModel.
![gembox docx police advance spacing gembox docx police advance spacing](https://stellantis-wn2022-assetlib.s3.amazonaws.com/resources/more_from_more_from_image1-20210622112531.jpg)
Style ParagraphStyle ListStyle TableStyle CharacterStyle ConditionalFormats ParagraphFormat CharacterFormat TableFormat RowFormat CellFormat ParagraphFormat CharacterFormat ListLevelFormats CharacterFormat Style class diagramįor a demonstration examples of formatting and styles, check out Formatting examples and Table examples from GemBox.Document Examples. The following class diagram shows styles available in GemBox.Document.Įach style class and property in the diagram links to its help page, so you can easily navigate to the details of each style. They have an advantage over direct formattings because their formatting properties can be set and changed in one single place, and all document content elements, which have that particular style applied, will be affected by the change. Styles are objects which contain visual information about one or more document content elements. In that case, if Run is the last or the only element in the parent Paragraph, use CharacterFormatForParagraphMark of the parent paragraph to save character (font) formatting to DOCX. If Text is Empty, then Run and its CharacterFormat won't be saved to DOCX. For more information about formatting properties resolution, see here. All newly created Paragraphs and Runs will have those formatting properties. Format ParagraphFormat ListFormat CharacterFormat TableFormat TableRowFormat TableCellFormat TableStyleFormat Format class diagramįormattings can be set directly on elements, such as ParagraphFormat or CharacterFormat or they can be set indirectly, through styles, such as ParagraphFormat or CharacterFormat.ĭefault formattings for paragraphs and text can be set through DefaultParagraphFormat and DefaultCharacterFormat properties. Formattingsįormattings are objects which contain visual information about document content element.įollowing class diagram shows formattings available in GemBox.Document.Įach formatting class in the diagram links to its help page, so you can easily navigate to the details of each formatting.
![gembox docx police advance spacing gembox docx police advance spacing](https://venturebeat.com/wp-content/uploads/2018/09/AirPower.jpg)
Formattings and styles are a means to set visual properties like color, font, size, alignment, positioning etc.