# PdfLineSpacing

Immutable paragraph line spacing with explicit relative or point units.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`56dd0d38e0b5` with working tree changes

**Source**

[PdfLineSpacing.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Pdf/Model/PdfLineSpacing.cs#L37)

**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.

### Returned or exposed by 6

- Property [PdfHeadingStyle.LineSpacing](/api/pdf/officeimo-pdf-pdfheadingstyle/#property-linespacing)
- Method [PdfLineSpacing.AtLeast](/api/pdf/officeimo-pdf-pdflinespacing/#method-atleast-officeimo-officelength-double)
- Method [PdfLineSpacing.Exact](/api/pdf/officeimo-pdf-pdflinespacing/#method-exact-officeimo-officelength)
- Method [PdfLineSpacing.Multiple](/api/pdf/officeimo-pdf-pdflinespacing/#method-multiple-double)
- Property [PdfListStyle.LineSpacing](/api/pdf/officeimo-pdf-pdfliststyle/#property-linespacing)
- Property [PdfParagraphStyle.LineSpacing](/api/pdf/officeimo-pdf-pdfparagraphstyle/#property-linespacing)

Filter members 

Show inherited

## Methods

`public static PdfLineSpacing AtLeast(OfficeLength height, double naturalMultiplier = 1.4)` [#](#method-atleast-officeimo-officelength-double)

[PdfLineSpacing.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Pdf/Model/PdfLineSpacing.cs#L46)

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.

Returns

`PdfLineSpacing`

`public static PdfLineSpacing Exact(OfficeLength height)` [#](#method-exact-officeimo-officelength)

[PdfLineSpacing.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Pdf/Model/PdfLineSpacing.cs#L41)

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.

Returns

`PdfLineSpacing`

`public static PdfLineSpacing Multiple(double multiplier)` [#](#method-multiple-double)

[PdfLineSpacing.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Pdf/Model/PdfLineSpacing.cs#L37)

Creates spacing proportional to each line's font size.

Parameters

**multiplier double required**

Positive finite line advance divided by font size.

Returns

`PdfLineSpacing`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public PdfLineSpacingRule Rule { get; }` [#](#property-rule)

[PdfLineSpacing.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Pdf/Model/PdfLineSpacing.cs#L24)

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

`public double? MultipleValue { get; }` [#](#property-multiplevalue)

[PdfLineSpacing.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Pdf/Model/PdfLineSpacing.cs#L27)

Gets the line multiple for proportional spacing, otherwise null.

`public OfficeLength? Height { get; }` [#](#property-height)

[PdfLineSpacing.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Pdf/Model/PdfLineSpacing.cs#L30)

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

`public double NaturalMultiplier { get; }` [#](#property-naturalmultiplier)

[PdfLineSpacing.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Pdf/Model/PdfLineSpacing.cs#L33)

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

<!-- PowerForge markdown artifact sha256:D4F6458701F0AF92B0292A6719E660E6ACCDE3301015CB8BB36306DBC685FD5F -->
