LineSpacing

Font.LineSpacing property

Returns line spacing of this font (in points).

public double LineSpacing { get; }

Examples

Shows how to get a font’s line spacing, in points.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

// Set different fonts for the DocumentBuilder and verify their line spacing.
builder.Font.Name = "Calibri";
Assert.That(builder.Font.LineSpacing, Is.EqualTo(14.6484375d));

builder.Font.Name = "Times New Roman";
Assert.That(builder.Font.LineSpacing, Is.EqualTo(13.798828125d));

See Also