Search Results for

    Show / Hide Table of Contents

    Class TextStyle

    Represents the TextStyle applied to an paragraph or text.

    Inheritance
    System.Object
    TextStyle
    Implements
    ITextStyle
    IronSoftware.Abstractions.Word.ITextStyle
    IDerivedStyle
    IronSoftware.Abstractions.Word.IDerivedStyle
    IronSoftware.Abstractions.Word.IStyle
    IronSoftware.Abstractions.Word.IWordDocumentObjectProperty
    IronSoftware.Abstractions.IDocumentObjectProperty
    Namespace: IronWord.Models
    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
    public TextStyle()

    Properties

    BaseStyle

    The original base style definition a style is based off of.

    Declaration
    public IBaseStyle BaseStyle { get; set; }
    Property Value
    Type Description
    IBaseStyle

    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

    The color of the text.

    Declaration
    public Color Color { get; set; }
    Property Value
    Type Description
    Color

    DefaultStyle

    The default text style.

    Declaration
    public ITextStyle DefaultStyle { get; }
    Property Value
    Type Description
    ITextStyle

    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
    Type Description
    System.Nullable<EmphasisMarkValues>

    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
    Type Description
    Shading

    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

    Status of the element.

    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
    Type Description
    System.Nullable<StrikeValue>

    TextEffect

    The special text effect applied to the text.

    Declaration
    public TextEffect TextEffect { get; set; }
    Property Value
    Type Description
    TextEffect

    TextFont

    The font family applied to the text.

    Declaration
    public Font TextFont { get; set; }
    Property Value
    Type Description
    Font

    Underline

    The underline style applied to the text.

    Declaration
    public Underline Underline { get; set; }
    Property Value
    Type Description
    Underline

    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
    Type Description
    System.Nullable<VerticalPositionValues>

    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
    public TextStyle Reset()
    Returns
    Type Description
    TextStyle

    This TextStyle object for method chaining.

    Implements

    ITextStyle
    IronSoftware.Abstractions.Word.ITextStyle
    IDerivedStyle
    IronSoftware.Abstractions.Word.IDerivedStyle
    IronSoftware.Abstractions.Word.IStyle
    IronSoftware.Abstractions.Word.IWordDocumentObjectProperty
    IronSoftware.Abstractions.IDocumentObjectProperty
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet
    Want to deploy IronWord to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronWord free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.