Table of Contents

Method GetHeight

Namespace
PdfSharp.Drawing
Assembly
PdfSharp.dll

GetHeight()

Returns the line spacing, in pixels, of this font. The line spacing is the vertical distance between the base lines of two consecutive lines of text. Thus, the line spacing includes the blank space between lines along with the height of the character itself.

public double GetHeight()

Returns

double

GetHeight(XGraphics)

Returns the line spacing, in the current unit of a specified Graphics object, of this font. The line spacing is the vertical distance between the base lines of two consecutive lines of text. Thus, the line spacing includes the blank space between lines along with the height of

[Obsolete("Use GetHeight() without parameter.")]
public double GetHeight(XGraphics graphics)

Parameters

graphics XGraphics

Returns

double