Class TextStyle
Represents the TextStyle applied to an paragraph or text.
Inherited Members
Namespace: IronWord.Models
Assembly: IronWord.dll
Syntax
public class TextStyle : DocumentStyle, ICloneable, ITextStyle, ITextStyle
Constructors
TextStyle()
Initializes a new instance of the TextStyle class.
Declaration
public TextStyle()
Properties
Caps
Gets or sets a value indicating whether the text is in capital letters.
Declaration
public bool Caps { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
CharacterScale
Gets or sets the character scaling factor.
Declaration
public Nullable<int> CharacterScale { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
Color
Gets or sets the color of the text.
Declaration
public Color Color { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
Emboss
Gets or sets a value indicating whether the text is embossed.
Declaration
public bool Emboss { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Emphasis
Gets or sets the emphasis style applied to the text.
Declaration
public Nullable<EmphasisMarkValues> Emphasis { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<EmphasisMarkValues> |
Imprint
Gets or sets a value indicating whether the text is imprinted.
Declaration
public bool Imprint { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsBold
Gets or sets a value indicating whether the text is bold.
Declaration
public bool IsBold { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsItalic
Gets or sets a value indicating whether the text is italic.
Declaration
public bool IsItalic { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Kern
Gets or sets the kerning adjustment.
Declaration
public Nullable<int> Kern { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
Languages
Gets or sets the language used in the text.
Declaration
public string Languages { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
LineSpacing
Declaration
public LineSpacing LineSpacing { get; set; }
Property Value
| Type | Description |
|---|---|
| IronSoftware.Abstractions.Styling.LineSpacing |
NoProof
Gets or sets a value indicating whether the text should not be proofed.
Declaration
public bool NoProof { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Outline
Gets or sets a value indicating whether the text is outlined.
Declaration
public bool Outline { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Shading
Gets or sets a Shading for text.
Declaration
public Shading Shading { get; set; }
Property Value
| Type | Description |
|---|---|
| Shading |
Shadow
Gets or sets a value indicating whether the text has a shadow.
Declaration
public bool Shadow { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
SmallCaps
Gets or sets a value indicating whether the text is in small capital letters.
Declaration
public bool SmallCaps { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
SnapToGrid
Gets or sets a value indicating whether the text snaps to grid.
Declaration
public bool SnapToGrid { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Spacing
Gets or sets the spacing between characters.
Declaration
public Nullable<int> Spacing { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
SpecVanish
Gets or sets a value indicating whether the text should be specially hidden.
Declaration
public bool SpecVanish { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Strike
Gets or sets a value indicating whether the text is struck through.
Declaration
public Nullable<StrikeValue> Strike { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<StrikeValue> |
TextEffect
Gets or sets the text effect applied to the text.
Declaration
public TextEffect TextEffect { get; set; }
Property Value
| Type | Description |
|---|---|
| TextEffect |
TextFont
Gets or sets the font properties such as family, size, and theme for text formatting.
Declaration
public Font TextFont { get; set; }
Property Value
| Type | Description |
|---|---|
| Font |
Underline
Gets or sets the underline style of the text.
Declaration
public Underline Underline { get; set; }
Property Value
| Type | Description |
|---|---|
| Underline |
Vanish
Gets or sets a value indicating whether the text is hidden.
Declaration
public bool Vanish { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
VerticalPosition
Gets or sets the vertical position of the text.
Declaration
public Nullable<double> VerticalPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Double> |
VerticalTextAlignment
Gets or sets the vertical alignment of the text.
Declaration
public Nullable<VerticalPositionValues> VerticalTextAlignment { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<VerticalPositionValues> |
WebHidden
Gets or sets a value indicating whether the text is hidden on the web.
Declaration
public bool WebHidden { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
Clone()
Creates a copy of this TextStyle object.
Declaration
public override object Clone()
Returns
| Type | Description |
|---|---|
| System.Object | A new TextStyle object with the same formatting properties. |
Overrides
Reset()
Resets all formatting properties to their default values.
Declaration
public TextStyle Reset()
Returns
| Type | Description |
|---|---|
| TextStyle | This TextStyle object for method chaining. |