API Reference
Class
PdfTextStyleCompose
Builder for default text styling applied to page content.
Inheritance
- Object
- PdfTextStyleCompose
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method PdfTextStyleCompose.Color
- Method PdfTextStyleCompose.Font
- Method PdfTextStyleCompose.FontFamily
- Method PdfTextStyleCompose.FontFamily
- Method PdfTextStyleCompose.FontFamily
- Method PdfTextStyleCompose.FontSize
Accepted by parameters
- Method PdfDocument.DefaultTextStyle
- Method PdfPageCompose.DefaultTextStyle
Methods
public PdfTextStyleCompose Color(PdfColor color) #Returns:
PdfTextStyleComposeSets the default text color.
Parameters
- color OfficeIMO.Pdf.PdfColor
public PdfTextStyleCompose Font(PdfStandardFont font) #Returns:
PdfTextStyleComposeSets the default standard font family.
Parameters
- font OfficeIMO.Pdf.PdfStandardFont
FontFamily 3 overloads
public PdfTextStyleCompose FontFamily(PdfEmbeddedFontFamily fontFamily) #Returns:
PdfTextStyleComposeUses a caller-supplied TrueType font family for the default generated text style.
Parameters
- fontFamily OfficeIMO.Pdf.PdfEmbeddedFontFamily
public PdfTextStyleCompose FontFamily(String familyName, Byte[] regular, Byte[] bold = null, Byte[] italic = null, Byte[] boldItalic = null) #Returns:
PdfTextStyleComposeUses caller-supplied TrueType font files for the default generated text style.
Parameters
- familyName System.String
- regular System.Byte[]
- bold System.Byte[] = null
- italic System.Byte[] = null
- boldItalic System.Byte[] = null
public PdfTextStyleCompose FontFamily(String familyName, String regularPath, String boldPath = null, String italicPath = null, String boldItalicPath = null) #Returns:
PdfTextStyleComposeUses caller-supplied TrueType font files for the default generated text style.
Parameters
- familyName System.String
- regularPath System.String
- boldPath System.String = null
- italicPath System.String = null
- boldItalicPath System.String = null
public PdfTextStyleCompose FontSize(Double size) #Returns:
PdfTextStyleComposeSets the default font size (points).
Parameters
- size System.Double