Click or drag to resize
Pdftools logo

FontLeading Property

The leading of the font.

The vertical distance between two adjacent base lines in multiline text.

This is a recomended value when generating several lines of text. If the font does not define this value, is returned.

Note that TextGenerator(Text, Font, Double, NullablePoint) uses a fixed value of 1.2 instead of this property to initialize the Leading in order to maintain backward compatibility with earlier versions.


Namespace: PdfTools.Toolbox.Pdf.Content
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.1.0+5820e9ca9ca173983539ffc40abc227fb62e6928
Syntax
C#
public double? Leading { get; }

Property Value

NullableDouble
Exceptions
ExceptionCondition
InvalidOperationExceptionif the font has already been closed
See Also