ComputeTextInRect Method (String, Int32, Int32, Int32, Int32, Int32, Int32, UInt32)
[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, _
xRelStart As Integer, _
yRelStart As Integer, _
availableWidth As Integer, _
availableHeight As Integer, _
dtFlags As UInteger _
)
public void ComputeTextInRect(
string text,
out int renderWidth,
out int renderHeight,
int xRelStart,
int yRelStart,
int availableWidth,
int availableHeight,
uint dtFlags
)
public:
void ComputeTextInRect(
String^ text,
[OutAttribute] int% renderWidth,
[OutAttribute] int% renderHeight,
int xRelStart,
int yRelStart,
int availableWidth,
int availableHeight,
unsigned int dtFlags
)
member ComputeTextInRect :
text:string *
renderWidth:int byref *
renderHeight:int byref *
xRelStart:int *
yRelStart:int *
availableWidth:int *
availableHeight:int *
dtFlags:uint32 -> unit
public function ComputeTextInRect(
text : String,
renderWidth : int,
renderHeight : int,
xRelStart : int,
yRelStart : int,
availableWidth : int,
availableHeight : int,
dtFlags : uint
)
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.
- xRelStart
Type: System. . :: . .Int32
The x-coordinate of the relative starting point for the text.
- yRelStart
Type: System. . :: . .Int32
The y-coordinate of the relative starting point for the text.
- availableWidth
Type: System. . :: . .Int32
The maximum width of text that will fit in the defined rectangular area.
- availableHeight
Type: System. . :: . .Int32
The maximum height of text that will fit in the defined rectangular area.
- dtFlags
Type: System. . :: . .UInt32
Flags that specify various text characteristics, such as alignment.
.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.