ComputeTextInRect Method (String, Int32, Int32, Int32)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Computes the size of the rectangular area on the display device needed to render the specified text string.
Namespace: Microsoft.SPOT
Assembly: Microsoft.SPOT.Graphics (in Microsoft.SPOT.Graphics.dll)
Syntax
'Declaration
Public Sub ComputeTextInRect ( _
text As String, _
<OutAttribute> ByRef renderWidth As Integer, _
<OutAttribute> ByRef renderHeight As Integer, _
availableWidth As Integer _
)
public void ComputeTextInRect(
string text,
out int renderWidth,
out int renderHeight,
int availableWidth
)
public:
void ComputeTextInRect(
String^ text,
[OutAttribute] int% renderWidth,
[OutAttribute] int% renderHeight,
int availableWidth
)
member ComputeTextInRect :
text:string *
renderWidth:int byref *
renderHeight:int byref *
availableWidth:int -> unit
public function ComputeTextInRect(
text : String,
renderWidth : int,
renderHeight : int,
availableWidth : int
)
Parameters
- text
Type: System. . :: . .String
The text you want to render on the display device.
- renderWidth
Type: System. . :: . .Int32%
The width, in pixels, of the rectangular area needed to render the text.
- renderHeight
Type: System. . :: . .Int32%
The height, in pixels, of the rectangular area needed to render the text.
- availableWidth
Type: System. . :: . .Int32
The maximum width of text that will fit in the defined rectangular area.
.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.