ComputeExtent Method (String, Int32, Int32)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Computes the width and height of a specified line of text.
Namespace: Microsoft.SPOT
Assembly: Microsoft.SPOT.Graphics (in Microsoft.SPOT.Graphics.dll)
Syntax
'Declaration
Public Sub ComputeExtent ( _
text As String, _
<OutAttribute> ByRef width As Integer, _
<OutAttribute> ByRef height As Integer _
)
public void ComputeExtent(
string text,
out int width,
out int height
)
public:
void ComputeExtent(
String^ text,
[OutAttribute] int% width,
[OutAttribute] int% height
)
member ComputeExtent :
text:string *
width:int byref *
height:int byref -> unit
public function ComputeExtent(
text : String,
width : int,
height : int
)
Parameters
- text
Type: System. . :: . .String
The text you want to measure.
- width
Type: System. . :: . .Int32%
The width of the specified text.
- height
Type: System. . :: . .Int32%
The height of the specified text.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.