HtmlUtilEstimateTextWidth Method

Return the estimated width of the presented text for the specified font size.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.3013.4544
C#
public static float EstimateTextWidth(
	string text,
	string fontSize
)

Parameters

text  String
The text to estimate.
fontSize  String
The size of the font, using CSS measurement units.

Return Value

Single
The estimated width of the text, in pixels.

See Also