[Root] / Xceed.PdfLibrary.NET Assembly / Xceed.PdfLibrary.NET Namespace / TextStyle Class
In This Topic
    TextStyle Class
    In This Topic
    Represents a text style.
    Object Model
    TextStyle ClassBrush ClassFont ClassTextStyle ClassPen ClassTextStyle ClassTextStyle ClassTextStyle ClassTextStyle ClassTextStyle ClassTextStyle ClassTextStyle ClassTextStyle ClassTextStyle ClassTextStyle ClassTextStyle ClassTextStyle Class
    Syntax
    public sealed class TextStyle 
    Remarks
    This class cannot be inherited.
    Inheritance Hierarchy

    System.Object
       Xceed.PdfLibrary.NET.TextStyle

    Public Properties
     NameDescription
    Public PropertyGets the Brush that will be used to fill the glyphs.  
    Public Property Gets a number representing the glyph's displacement in unscaled text space units.  
    Public PropertyGets the Font used to stylize the text.  
    Public PropertyGets the Font’s size.  
    Public Property Gets the glyphs' stretching or compression factor.  
    Public Property Gets the distance between the baseline of two adjacent lines of text  
    Public PropertyGets the Pen that will be used when drawing the glyphs.  
    Public PropertyGets the rotation applied to the text.  
    Public PropertyGets the number representing the distance between the baseline & its default location.  
    Public Property The word separator's displacement in unscaled text space units.  
    Top
    Public Methods
     NameDescription
    Public Methodstatic (Shared in Visual Basic)Overloaded. Tests if two TextStyle objects are considered equal.  
    Public Methodstatic (Shared in Visual Basic)Gets the default TextStyle.  
    Public MethodReturns a hash code for the current instance.  
    Public MethodSets the TextStyle's Brush.  
    Public Method Sets a number representing the glyph's displacement in unscaled text space units.  
    Public MethodOverloaded. Sets the Font used by the TextStyle.  
    Public MethodSets the TextStyle’s Font size.  
    Public Method Sets a stretching or compression factor for the width of glyphs.  
    Public Method Sets the distance between the baseline of two adjacent lines of text, in unscaled text space units.  
    Public MethodSets the Pen used by the TextStyle.  
    Public MethodSets the TextStyle’s rotation angle.  
    Public Method Sets the distance, in unscaled text space units, between the baseline & its default locatio.  
    Public Method Sets the number representing the word separator's displacement, in unscaled text space units.  
    Public Methodstatic (Shared in Visual Basic)Creates a TextStyle with a specific Font.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Creates a TextStyle with a Font and a Color.  
    Top
    Public Operators
    Equality operator.
    Inequality operator.
    Top
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also