Table of Contents

Method GetHeight

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

GetHeight(Graphics)

Calculates the height of the font when rendered in the specified graphics context. Uses the height of the characters "Wg" as a reference.

public virtual float GetHeight(Graphics dc)

Parameters

dc Graphics

The graphics context used to measure the font height.

Returns

float

The height of the font as a float value.