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
Factor
Gets the line-height factor for multiple spacing, or null.
public double? Factor { get; }
Property Value
Height
Gets the absolute height for fixed/minimum spacing, or null.
public RichLength? Height { get; }
Property Value
Kind
Gets the spacing rule.
public RichLineSpacingKind Kind { get; }
Property Value
Methods
AtLeast(RichLength)
Uses a positive minimum height.
public static RichLineSpacing AtLeast(RichLength height)
Parameters
heightRichLength
Returns
Exactly(RichLength)
Uses a positive fixed height.
public static RichLineSpacing Exactly(RichLength height)
Parameters
heightRichLength
Returns
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
factordouble