Class TextStyle
Represents the TextStyle applied to an paragraph or text.
Inheritance
System.Object
TextStyle
Implements
IronSoftware.Abstractions.Word.ITextStyle
IronSoftware.Abstractions.Word.IDerivedStyle
IronSoftware.Abstractions.Word.IStyle
IronSoftware.Abstractions.Word.IWordDocumentObjectProperty
IronSoftware.Abstractions.IDocumentObjectProperty
Assembly: IronWord.dll
Syntax
public class TextStyle : Object, ITextStyle, ITextStyle, IDerivedStyle, IDerivedStyle, IStyle, IWordDocumentObjectProperty, IDocumentObjectProperty
Constructors
TextStyle()
Initializes a new instance of the TextStyle class.
Declaration
Properties
BaseStyle
The original base style definition a style is based off of.
Declaration
public IBaseStyle BaseStyle { get; set; }
Property Value
Caps
Declaration
public Nullable<bool> Caps { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Boolean> |
|
CharacterScale
Declaration
public Nullable<int> CharacterScale { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Int32> |
|
Color
Declaration
public Color Color { get; set; }
Property Value
DefaultStyle
Declaration
public ITextStyle DefaultStyle { get; }
Property Value
Emboss
Declaration
public Nullable<bool> Emboss { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Boolean> |
|
Emphasis
The emphasis mark style applied to the text.
Declaration
public Nullable<EmphasisMarkValues> Emphasis { get; set; }
Property Value
FontSize
Declaration
public Nullable<float> FontSize { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Single> |
|
FontSizeComplexScript
Declaration
public Nullable<float> FontSizeComplexScript { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Single> |
|
Imprint
Declaration
public Nullable<bool> Imprint { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Boolean> |
|
IsBold
Declaration
public Nullable<bool> IsBold { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Boolean> |
|
IsItalic
Declaration
public Nullable<bool> IsItalic { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Boolean> |
|
Kern
Declaration
public Nullable<int> Kern { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Int32> |
|
Languages
Declaration
public string Languages { get; set; }
Property Value
| Type |
Description |
| System.String |
|
NoProof
Declaration
public Nullable<bool> NoProof { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Boolean> |
|
Outline
Gets or sets a value indicating whether the text is outlined.
Declaration
public Nullable<bool> Outline { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Boolean> |
|
Shading
The background shading applied to the text.
Declaration
public Shading Shading { get; set; }
Property Value
Shadow
Declaration
public Nullable<bool> Shadow { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Boolean> |
|
SmallCaps
Gets or sets a value indicating whether the text is in small capital letters.
Declaration
public Nullable<bool> SmallCaps { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Boolean> |
|
SnapToGrid
Declaration
public Nullable<bool> SnapToGrid { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Boolean> |
|
Spacing
Declaration
public Nullable<int> Spacing { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Int32> |
|
SpecVanish
Declaration
public Nullable<bool> SpecVanish { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Boolean> |
|
Status
Declaration
public ElementStatus Status { get; set; }
Property Value
| Type |
Description |
| IronSoftware.Abstractions.Word.ElementStatus |
|
Strike
Gets or sets a value indicating whether the text is struck through.
Declaration
public Nullable<StrikeValue> Strike { get; set; }
Property Value
TextEffect
The special text effect applied to the text.
Declaration
public TextEffect TextEffect { get; set; }
Property Value
TextFont
The font family applied to the text.
Declaration
public Font TextFont { get; set; }
Property Value
Underline
The underline style applied to the text.
Declaration
public Underline Underline { get; set; }
Property Value
Vanish
Declaration
public Nullable<bool> Vanish { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Boolean> |
|
VerticalPosition
Declaration
public Nullable<double> VerticalPosition { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Double> |
|
VerticalTextAlignment
The vertical alignment of the text (superscript, subscript, or baseline).
Declaration
public Nullable<VerticalPositionValues> VerticalTextAlignment { get; set; }
Property Value
WebHidden
Declaration
public Nullable<bool> WebHidden { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Boolean> |
|
Methods
Reset()
Resets all formatting properties to their default values.
Declaration
Returns
| Type |
Description |
| TextStyle |
This TextStyle object for method chaining.
|
Implements
IronSoftware.Abstractions.Word.ITextStyle
IronSoftware.Abstractions.Word.IDerivedStyle
IronSoftware.Abstractions.Word.IStyle
IronSoftware.Abstractions.Word.IWordDocumentObjectProperty
IronSoftware.Abstractions.IDocumentObjectProperty