Table of Contents

Method GetWidth

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

GetWidth(Graphics)

Calculates the width of the character "x" when rendered with the current font settings.

public virtual float GetWidth(Graphics dc)

Parameters

dc Graphics

The Graphics context used to measure the text.

Returns

float

A float representing the width of the character "x" in the current font.