Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfLineSpacing

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Modifiers sealed

Immutable paragraph line spacing with explicit relative or point units.

Inheritance

  • Object
  • PdfLineSpacing

Usage

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(Double points, Double naturalMultiplier = 1.4) #
Returns: PdfLineSpacing

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

Parameters

points System.Double requiredposition: 0
Non-negative minimum advance in points. Zero uses the natural line height.
naturalMultiplier System.Double = 1.4 optionalposition: 1
Natural line advance divided by font size, used when text exceeds the minimum.
public static PdfLineSpacing Exactly(Double points) #
Returns: PdfLineSpacing

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

Parameters

points System.Double requiredposition: 0
Line advance in points. Text may extend beyond the line box.
public static PdfLineSpacing Multiple(Double multiplier) #
Returns: PdfLineSpacing

Creates spacing proportional to each line's font size.

Parameters

multiplier System.Double requiredposition: 0
Line advance divided by font size.

Properties

public PdfLineSpacingRule Rule { get; } #

The spacing rule that determines how Value is interpreted.

public Double Value { get; } #

The multiplier for Multiple, or points for the other rules.

public Double NaturalMultiplier { get; } #

Natural line advance divided by font size. Used by minimum spacing and equal to Value for multiple spacing.