Class PdfTextStyle
Represents class that provides style configuration of text content in the exported Pdf.
Namespace: Syncfusion.Blazor.Grids
Assembly: Syncfusion.Blazor.dll
Syntax
public class PdfTextStyle : Object
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 |
---|---|
System.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 |
---|---|
Syncfusion.PdfExport.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.