alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class PdfTextStyle

    Represents class that provides style configuration of text content in the exported Pdf.

    Inheritance
    object
    PdfTextStyle
    PdfElementStyle
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.Grids
    Assembly: Syncfusion.Blazor.Grids.dll
    Syntax
    public class PdfTextStyle

    Constructors

    PdfTextStyle()

    Declaration
    public PdfTextStyle()

    Properties

    FillBackgroundColor

    Gets or sets the background color for text in the exported PDF.

    Declaration
    public string? FillBackgroundColor { get; set; }
    Property Value
    Type Description
    string

    A string representing the background color of the text in the PDF export, specified by color name, RGB code, or hexadecimal code.

    Remarks

    This property determines the background color of the text in the PDF export. Use color names (e.g., "Red"), RGB codes (e.g., "255,0,0"), or hexadecimal codes (e.g., "#FF0000") to specify the background color.

    Font

    Gets or sets the font of the text content in the exported PDF.

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

    An instance of PdfGridFont.

    Remarks

    Represents the font configuration of the text content in the exported PDF using an PdfGridFont instance. The PdfGridFont class allows customization of font styles, sizes, colors, and other properties for text rendering in the PDF. Use this property to apply specific font settings to the text content when exporting to PDF.

    StringFormat

    Gets or sets the text formatting and alignment in the exported PDF, specifically for vertical and horizontal alignment.

    Declaration
    public PdfStringFormat? StringFormat { get; set; }
    Property Value
    Type Description
    PdfStringFormat

    An instance of Syncfusion.PdfExport.PdfStringFormat.

    Remarks

    Represents the text formatting and alignment settings for the exported PDF using an Syncfusion.PdfExport.PdfStringFormat instance.
    The Syncfusion.PdfExport.PdfStringFormat class allows customization of vertical and horizontal text alignment, character spacing, line spacing, text direction, and more. Use this property to apply specific alignment settings to text content when exporting to Pdf.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved