Table of Contents

Struct RichLineSpacing

Namespace
RichEdit.Core
Assembly
RichEdit.Core.dll

RTF-exact line spacing in twips or 1/240-line increments.

public readonly record struct RichLineSpacing : IEquatable<RichLineSpacing>
Implements
Inherited Members

Properties

Automatic

Uses the text engine's automatic line height.

public static RichLineSpacing Automatic { get; }

Property Value

RichLineSpacing

Factor

Gets the line-height factor for multiple spacing, or null.

public double? Factor { get; }

Property Value

double?

Height

Gets the absolute height for fixed/minimum spacing, or null.

public RichLength? Height { get; }

Property Value

RichLength?

Kind

Gets the spacing rule.

public RichLineSpacingKind Kind { get; }

Property Value

RichLineSpacingKind

Methods

AtLeast(RichLength)

Uses a positive minimum height.

public static RichLineSpacing AtLeast(RichLength height)

Parameters

height RichLength

Returns

RichLineSpacing

Exactly(RichLength)

Uses a positive fixed height.

public static RichLineSpacing Exactly(RichLength height)

Parameters

height RichLength

Returns

RichLineSpacing

Multiple(double)

Uses a positive line factor, rounded to the nearest 1/240 line. Use 1, 1.5 or 2 for common spacing.

public static RichLineSpacing Multiple(double factor)

Parameters

factor double

Returns

RichLineSpacing