Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfTextRunDefaults

OfficeIMO.Pdf

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

Formatting that a PdfParagraph copies into each run it creates afterwards. Changing a default never changes runs that already exist; format an existing run through its own setters.

Inheritance

  • object
  • PdfTextRunDefaults

Usage

Explore 1 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.

Returned or exposed by 1

Properties

public bool Bold { get; set; } #

Whether new runs are bold.

public bool Italic { get; set; } #

Whether new runs are italic.

public OfficeTextDecorationStyle UnderlineStyle { get; set; } #

Underline pattern for new runs. OfficeTextDecorationStyle.None leaves them without underline.

public OfficeTextDecorationStyle StrikeStyle { get; set; } #

Strikethrough pattern for new runs. OfficeTextDecorationStyle.None leaves them without strikethrough.

public OfficeColor? Color { get; set; } #

Foreground colour for new runs. Starts with the colour passed when the paragraph was added.

public OfficeColor? BackgroundColor { get; set; } #

Background colour for new runs, useful for highlights.

public OfficeLength? FontSize { get; set; } #

Font size for new runs. Null uses the paragraph font size.

public string? FontFamily { get; set; } #

Registered embedded font family for new runs. Null uses the paragraph or document font.

public PdfStandardFont? StandardFont { get; set; } #

Standard PDF font for new runs. Null uses the paragraph or document font.

public PdfTextBaseline Baseline { get; set; } #

Baseline placement for new runs.

public OfficeTextFeatureSettings FeatureSettings { get; set; } #

OpenType feature selections for new text runs, including kerning.

public double HorizontalTextScaling { get; set; } #

Horizontal glyph width percentage for new text runs. 100 is normal width.

public OfficeLength CharacterSpacing { get; set; } #

Additional advance after each glyph of new text runs. Zero is normal spacing.