TableStyleFormat Class
Represents a set of table style conditional formatting properties.
These properties affect the appearance of all rows, cells, paragraphs and runs within the parent table matching the specified condition, but may be overridden by individual row, cell, paragraph and run level formats.
public sealed class TableStyleFormat : Format
Public NotInheritable Class TableStyleFormat
Inherits Format
- Inheritance:
- System.ObjectTableStyleFormat
Remarks
Table style conditional formats are applied to different regions of the table and allow you to define all formatting properties (formatting for a table, rows, cells, paragraphs and runs).
For more information about table styles, see table styles article and table styles example.
Constructors
TableStyleFormat(TableStyleFormatType)
Initializes a new instance of the TableStyleFormat class.
public TableStyleFormat(TableStyleFormatType formatType)
Public Sub New(formatType As TableStyleFormatType)
Parameters
formatType
- TableStyleFormatType
The table style conditional format type.
Remarks
For more information about table styles, see table styles article and table styles example.
Properties
CellFormat
Gets or sets the table cell format.
public TableCellFormat CellFormat { get; set; }
Public Property CellFormat As TableCellFormat
Property Value
The table cell format.
CharacterFormat
Gets or sets the character format.
public CharacterFormat CharacterFormat { get; set; }
Public Property CharacterFormat As CharacterFormat
Property Value
The character format.
Document
Gets the owner document.
Property Value
The owner document.
FormatType
Gets the table style conditional format type.
public TableStyleFormatType FormatType { get; }
Public ReadOnly Property FormatType As TableStyleFormatType
Property Value
The table style conditional format type.
Remarks
For more information about table styles, see table styles article and table styles example.
ParagraphFormat
Gets or sets the paragraph format.
public ParagraphFormat ParagraphFormat { get; set; }
Public Property ParagraphFormat As ParagraphFormat
Property Value
The paragraph format.
RowFormat
Gets or sets the table row format.
Property Value
The table row format.
TableFormat
Gets or sets the table format.
Property Value
The table format.
Methods
ClearFormatting()
Clears the formatting.
Overrides
Remarks
This method will clear all directly set formatting values. When retrieving formatting value, they can still come from other sources, as explained in formats and styles article.