HtmlUtilEstimateTextWidth Method
Return the estimated width of the presented text for the specified
font size.
Namespace: HtmlAssembly: Html (in Html.dll) Version: 25.3013.4544
public static float EstimateTextWidth(
string text,
string fontSize
)
Public Shared Function EstimateTextWidth (
text As String,
fontSize As String
) As Single
No code example is currently available or this language may not be supported.
- text String
-
The text to estimate.
- fontSize String
-
The size of the font, using CSS measurement units.
Single
The estimated width of the text, in pixels.