Font.ComputeExtent Method (String, Int32, Int32)
Computes the width and height of a specified line of text.
Namespace: Microsoft.SPOT
Assembly: Microsoft.SPOT.Graphics (in microsoft.spot.graphics.dll)
Syntax
public void ComputeExtent (
stringtext,
ref intwidth,
ref intheight
)
Parameters
- text
The text you want to measure. - width
[OutAttribute] The width of the specified text. - height
[OutAttribute] The height of the specified text.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.