Interface ITextStyle
The styling options for text.
Inherited Members
Namespace: IronWord.Models
Assembly: IronWord.dll
Syntax
public interface ITextStyle : ITextStyle, IDerivedStyle, IDerivedStyle, IStyle, IWordDocumentObjectProperty, IDocumentObjectProperty
Properties
Color
The color of the text.
Declaration
Color Color { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
DefaultStyle
The default text style.
Declaration
ITextStyle DefaultStyle { get; }
Property Value
| Type | Description |
|---|---|
| ITextStyle |
Emphasis
The emphasis mark style applied to the text.
Declaration
Nullable<EmphasisMarkValues> Emphasis { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<EmphasisMarkValues> |
Shading
The background shading applied to the text.
Declaration
Shading Shading { get; set; }
Property Value
| Type | Description |
|---|---|
| Shading |
Strike
The strikethrough style applied to the text.
Declaration
Nullable<StrikeValue> Strike { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<StrikeValue> |
TextEffect
The special text effect applied to the text.
Declaration
TextEffect TextEffect { get; set; }
Property Value
| Type | Description |
|---|---|
| TextEffect |
TextFont
The font family applied to the text.
Declaration
Font TextFont { get; set; }
Property Value
| Type | Description |
|---|---|
| Font |
Underline
The underline style applied to the text.
Declaration
Underline Underline { get; set; }
Property Value
| Type | Description |
|---|---|
| Underline |
VerticalTextAlignment
The vertical alignment of the text (superscript, subscript, or baseline).
Declaration
Nullable<VerticalPositionValues> VerticalTextAlignment { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<VerticalPositionValues> |
Methods
Reset()
Resets all text style properties to their default values.
Declaration
TextStyle Reset()
Returns
| Type | Description |
|---|---|
| TextStyle |