Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfLineSpacing

OfficeIMO.Pdf

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

Immutable paragraph line spacing with explicit relative or point units.

Inheritance

  • object
  • PdfLineSpacing

Usage

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

Methods

public static PdfLineSpacing AtLeast(OfficeLength height, double naturalMultiplier = 1.4) #

Creates a minimum physical line advance that expands for larger text or inline elements.

Parameters

height OfficeIMO.OfficeLength required
Non-negative minimum height. Zero uses the natural line height.
naturalMultiplier double = 1.4 optional
Natural line advance divided by font size, used when text exceeds the minimum.
public static PdfLineSpacing Exact(OfficeLength height) #

Creates a fixed physical line advance, independent of font and inline element sizes.

Parameters

height OfficeIMO.OfficeLength required
Positive line height. Text may extend beyond the line box.
public static PdfLineSpacing Multiple(double multiplier) #

Creates spacing proportional to each line's font size.

Parameters

multiplier double required
Positive finite line advance divided by font size.

Properties

public PdfLineSpacingRule Rule { get; } #

The spacing rule, assigned together with its physical height or line multiple.

public double? MultipleValue { get; } #

Gets the line multiple for proportional spacing, otherwise null.

public OfficeLength? Height { get; } #

Gets the physical height for exact or minimum spacing, otherwise null.

public double NaturalMultiplier { get; } #

Natural line advance divided by font size. For proportional spacing, equal to the line multiple.