PdfLineSpacing
OfficeIMO.Pdf
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
- Method PdfLineSpacing.AtLeast
- Method PdfLineSpacing.Exact
- Method PdfLineSpacing.Multiple
- Property PdfListStyle.LineSpacing
- Property PdfParagraphStyle.LineSpacing
Methods
public static PdfLineSpacing AtLeast(OfficeLength height, double naturalMultiplier = 1.4) #Creates a minimum physical line advance that expands for larger text or inline elements.
Parameters
- height OfficeIMO.OfficeLength
- Non-negative minimum height. Zero uses the natural line height.
- naturalMultiplier double = 1.4
- Natural line advance divided by font size, used when text exceeds the minimum.
Returns
PdfLineSpacingpublic static PdfLineSpacing Exact(OfficeLength height) #Creates a fixed physical line advance, independent of font and inline element sizes.
Parameters
- height OfficeIMO.OfficeLength
- Positive line height. Text may extend beyond the line box.
Returns
PdfLineSpacingpublic static PdfLineSpacing Multiple(double multiplier) #Creates spacing proportional to each line's font size.
Parameters
- multiplier double
- Positive finite line advance divided by font size.
Returns
PdfLineSpacingInherited Methods
Properties
public PdfLineSpacingRule Rule { get; } #The spacing rule, assigned together with its physical height or line multiple.
public double? MultipleValue { get; } #Gets the line multiple for proportional spacing, otherwise null.
public OfficeLength? Height { get; } #Gets the physical height for exact or minimum spacing, otherwise null.
public double NaturalMultiplier { get; } #Natural line advance divided by font size. For proportional spacing, equal to the line multiple.