Interface IBaseStyle
Base style definition.
Namespace: IronWord.Models
Assembly: IronWord.dll
Syntax
public interface IBaseStyle
IBaseStyle is the shared base a derived Word style reads its inherited values from, the contract you receive when you ask a concrete style for the base it builds on. A derived style exposes it through its own BaseStyle property, so code that walks a style's inheritance reads the base through this interface rather than a concrete type.
The concrete implementor is BaseStyle, and you typically obtain an IBaseStyle from a derived style rather than constructing one: ParagraphStyle, TableCellStyle, TableStyle, and TextStyle each expose a BaseStyle property typed as IBaseStyle. The interface itself surfaces the style facets of that base. ParagraphStyle, TextStyle, TableStyle, and TableCellStyle properties give the paragraph, run, and table aspects, while InheritedStyle points one level further up the chain. Read these to discover what a derived style inherits before applying your own overrides on the concrete type.
The styled text how-to sets style values, and the document element tutorial shows how styles compose a document.
Properties
InheritedStyle
The base style object this style inherits from.
Declaration
IBaseStyle InheritedStyle { get; }
Property Value
| Type | Description |
|---|---|
| IBaseStyle |
ParagraphStyle
The paragraph style to be applied by default.
Declaration
ParagraphStyle ParagraphStyle { get; }
Property Value
| Type | Description |
|---|---|
| ParagraphStyle |
TableCellStyle
The table cell style to be applied by default.
Declaration
TableCellStyle TableCellStyle { get; }
Property Value
| Type | Description |
|---|---|
| TableCellStyle |
TableStyle
The table style to be applied by default.
Declaration
TableStyle TableStyle { get; }
Property Value
| Type | Description |
|---|---|
| TableStyle |
TextStyle
The text style to be applied by default.
Declaration
TextStyle TextStyle { get; }
Property Value
| Type | Description |
|---|---|
| TextStyle |