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
    IronWord_for_dotnet_log2o
    Blue key in circleGet started for FREE
    No credit card required
    Test in a live environment

    Test in production without watermarks.
    Works wherever you need it to.

    Fully-functional product

    Get 30 days of fully functional product.
    Have it up and running in minutes.

    24/5 technical support

    Full access to our support engineering team during your product trial

    Grey key in circleGet started for FREE
    The trial form was submitted successfully.
    Calendar in circleBook Free Live Demo
    No contact, no card details, no commitments Book a 30-minute, personal demo.
    Here's what to expect:

    A live demo of our product and its key features

    Get project specific feature recommendations

    All your questions are answered to make sure you have all the information you need. (No commitment whatsoever.)

    Grey key in circleBook Free Live Demo
    Your booking has been completed Check your e-mail for confirmation
    Support Team Member 6 related to The C# PDF Library Support Team Member 14 related to The C# PDF Library Support Team Member 4 related to The C# PDF Library Support Team Member 2 related to The C# PDF Library
    Online 24/5
    Need help? Our sales team would be glad to help you.
    Try the Enterprise Trial
    ironpdf_for_dotnet_log2o
    Key in blue circle
    Get your free 30-day Trial Key instantly.
    bullet_checkedNo credit card or account creation required
    Key in blue circle
    Get your free 30-day Trial Key instantly.
    Blue key in circleNo credit card or account creation required
    Green Check in orange circle
    The trial form was submitted successfully.
    badge_greencheck_in_yellowcircle
    Thank you for starting a trial

    Please check your email for the trial license key.

    If you don’t receive an email, please start a live chat or email support@ironsoftware.com

    Install with NuGet
    View Licensing
    • Logo Aetna
    • Logo NASA
    • Logo GE
    • Logo Porsche
    • Logo USDA
    • Logo Qatar
    Join Millions of Engineers who’ve tried IronWord