API Reference
Class
PdfLineSpacing
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.
Returned or exposed by
- Property PdfHeadingStyle.LineSpacing
- Method PdfLineSpacing.AtLeast
- Method PdfLineSpacing.Exactly
- Method PdfLineSpacing.Multiple
- Property PdfListStyle.LineSpacing
- Property PdfParagraphStyle.LineSpacing
Methods
public static PdfLineSpacing AtLeast(Double points, Double naturalMultiplier = 1.4) #Returns:
PdfLineSpacingCreates a minimum line advance in points that expands for larger text or inline elements.
Parameters
- points System.Double
- Non-negative minimum advance in points. Zero uses the natural line height.
- naturalMultiplier System.Double = 1.4
- Natural line advance divided by font size, used when text exceeds the minimum.
public static PdfLineSpacing Exactly(Double points) #Returns:
PdfLineSpacingCreates a fixed line advance in points, independent of font and inline element sizes.
Parameters
- points System.Double
- Line advance in points. Text may extend beyond the line box.
public static PdfLineSpacing Multiple(Double multiplier) #Returns:
PdfLineSpacingCreates spacing proportional to each line's font size.
Parameters
- multiplier System.Double
- Line advance divided by font size.
Inherited Methods
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.