Interface ITableCellStyle
Style for table cells.
Namespace: IronWord.Models
Assembly: IronWord.dll
Syntax
public interface ITableCellStyle
Describing the styling of a single table cell through a contract, rather than a concrete type, is what ITableCellStyle provides. It represents the style applied to one cell of a Word table, separate from the row and table styles that surround it, so cell-level formatting can be read or carried independently of the implementing class.
The concrete implementor in IronWord is TableCellStyle, which is what a TableCell exposes through its Style property. The contract's own member is InheritedStyle, a get-only property typed as ITableStyle that points to the table-level style a cell inherits its defaults from, so reading it shows where a cell's unset values come from. Because the interface member is read-only, you obtain the inherited style through it rather than reassigning it; to change a cell's formatting, set a TableCellStyle on the cell's Style property and adjust the concrete type.
The add table how-to builds a styled table, and the add table example shows cell formatting in context.
Properties
InheritedStyle
The styling of the table this table cell is a part of.
Declaration
ITableStyle InheritedStyle { get; }
Property Value
| Type | Description |
|---|---|
| ITableStyle |