Table of Contents

Struct LineSpacing

Namespace
PaintDotNet.DirectWrite
Assembly
PaintDotNet.Windows.dll

Sets the vertical spacing between lines of text.

public struct LineSpacing : IEquatable<LineSpacing>
Implements
Inherited Members

Constructors

LineSpacing(LineSpacingMethod, float, float, float, FontLineGapUsage)

Properties

Baseline

Distance from top of line to baseline. The interpretation of this parameter depends upon the line spacing method, as follows:

  • Default line spacing: ignored
  • Uniform line spacing: explicit distance in DIPs from the top of the line to the baseline
  • Proportional line spacing: a scaling factor applied to the computed baseline; for each line, the baseline distance is computed as for default line spacing, and the scaling factor is applied to that value.
FontLineGapUsage

Specifies whether the font metrics' line gap value should be part of the line metrics.

Height

Spacing between lines. The interpretation of this parameter depends upon the line spacing method, as follows:

  • Default line spacing: ignored
  • Uniform line spacing: explicit distance in DIPs between lines
  • Proportional line spacing: a scaling factor to be applied to the computed line height; for each line, the height of the line is computed as for default line spacing, and the scaling factor is applied to that value.
LeadingBefore

Proportion of the entire leading distributed before the line. The allowed value is between 0 and 1.0. The remaining leading is distributed after the line. It is ignored for the default and uniform line spacing methods. The leading that is available to distribute before or after the line depends on the values of the height and baseline parameters.

Method

Method used to determine line spacing.

Methods

Equals(LineSpacing)
Equals(in LineSpacing)
Equals(object?)
GetHashCode()

Operators

operator ==(in LineSpacing, in LineSpacing)
operator !=(in LineSpacing, in LineSpacing)