Table of Contents

Method StringWidth

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

StringWidth(string, bool)

Calculates width of specified string using current Font.

public int StringWidth(string s, bool measureText = false)

Parameters

s string

String to measure.

measureText bool

Returns

int

Width of the text.