Font.GetHeight

GetHeight()

Returns the line spacing, in pixels, of this font.

public float GetHeight()

Return Value

The line spacing, in pixels, of this font.

See Also


GetHeight(float)

Returns the height, in pixels, of this Font when drawn to a device with the specified vertical resolution.

public float GetHeight(float dpi)
ParameterTypeDescription
dpiSingleThe vertical resolution, in dots per inch, used to calculate the height of the font.

Return Value

The height, in pixels, of this Font.

See Also