WebPlanner Programmer's Guide

GraphicsEx.GetFontHeight Method

See Also
 


Returns the line spacing of a specified .NET Font object.

Namespace: MindFusion.Drawing
Assembly: MindFusion.Scheduling.Compact

 Syntax

C#  Copy Code

public int GetFontHeight (
    Font font
)

Visual Basic  Copy Code

Public Function GetFontHeight ( _
    font As Font _
) As Integer

 Parameters

font
The font to measure.

 Return Value

The line spacing, in pixels, of the specified font.

 Remarks

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.

 See Also