Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfTextStyleBuilder

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

Builder for default text styling applied to page content.

Inheritance

  • object
  • PdfTextStyleBuilder

Usage

Explore 5 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Methods

public PdfTextStyleBuilder Color(OfficeColor color) #

Sets the default text color.

Parameters

color OfficeIMO.OfficeColor required
public PdfTextStyleBuilder Font(PdfStandardFont font) #

Sets the default standard font family.

Parameters

font OfficeIMO.Pdf.PdfStandardFont required
FontFamily 3 overloads
public PdfTextStyleBuilder FontFamily(PdfEmbeddedFontFamily fontFamily) #

Uses a caller-supplied TrueType font family for the default generated text style.

Parameters

fontFamily OfficeIMO.Pdf.PdfEmbeddedFontFamily required
public PdfTextStyleBuilder FontFamily(string familyName, byte[] regular, byte[]? bold = null, byte[]? italic = null, byte[]? boldItalic = null) #

Uses caller-supplied TrueType font files for the default generated text style.

Parameters

familyName string required
regular byte[] required
bold byte[]? = null optional
italic byte[]? = null optional
boldItalic byte[]? = null optional
public PdfTextStyleBuilder FontFamily(string familyName, string regularPath, string? boldPath = null, string? italicPath = null, string? boldItalicPath = null) #

Uses caller-supplied TrueType font files for the default generated text style.

Parameters

familyName string required
regularPath string required
boldPath string? = null optional
italicPath string? = null optional
boldItalicPath string? = null optional
public PdfTextStyleBuilder FontSize(OfficeLength size) #

Sets the default font size (points).

Parameters

size OfficeIMO.OfficeLength required