API Reference

Class

PdfTextStyleCompose

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf

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.

Accepted by parameters

Methods

public PdfTextStyleCompose Color(PdfColor color) #
Returns: PdfTextStyleCompose

Sets the default text color.

Parameters

color OfficeIMO.Pdf.PdfColor requiredposition: 0
public PdfTextStyleCompose Font(PdfStandardFont font) #
Returns: PdfTextStyleCompose

Sets the default standard font family.

Parameters

font OfficeIMO.Pdf.PdfStandardFont requiredposition: 0
FontFamily 3 overloads
public PdfTextStyleCompose FontFamily(PdfEmbeddedFontFamily fontFamily) #
Returns: PdfTextStyleCompose

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

Parameters

fontFamily OfficeIMO.Pdf.PdfEmbeddedFontFamily requiredposition: 0
public PdfTextStyleCompose FontFamily(String familyName, Byte[] regular, Byte[] bold = null, Byte[] italic = null, Byte[] boldItalic = null) #
Returns: PdfTextStyleCompose

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

Parameters

familyName System.String requiredposition: 0
regular System.Byte[] requiredposition: 1
bold System.Byte[] = null optionalposition: 2
italic System.Byte[] = null optionalposition: 3
boldItalic System.Byte[] = null optionalposition: 4
public PdfTextStyleCompose FontFamily(String familyName, String regularPath, String boldPath = null, String italicPath = null, String boldItalicPath = null) #
Returns: PdfTextStyleCompose

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

Parameters

familyName System.String requiredposition: 0
regularPath System.String requiredposition: 1
boldPath System.String = null optionalposition: 2
italicPath System.String = null optionalposition: 3
boldItalicPath System.String = null optionalposition: 4
public PdfTextStyleCompose FontSize(Double size) #
Returns: PdfTextStyleCompose

Sets the default font size (points).

Parameters

size System.Double requiredposition: 0