DrawText Method (String, Font, Color, Int32, Int32)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Draws specified text on the drawing surface, beginning at a specified location (position).
Namespace: Microsoft.SPOT.Presentation.Media
Assembly: Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)
Syntax
'Declaration
Public Sub DrawText ( _
text As String, _
font As Font, _
color As Color, _
x As Integer, _
y As Integer _
)
public void DrawText(
string text,
Font font,
Color color,
int x,
int y
)
public:
void DrawText(
String^ text,
Font^ font,
Color color,
int x,
int y
)
member DrawText :
text:string *
font:Font *
color:Color *
x:int *
y:int -> unit
public function DrawText(
text : String,
font : Font,
color : Color,
x : int,
y : int
)
Parameters
- text
Type: System. . :: . .String
The string that contains the text to be drawn.
- font
Type: Microsoft.SPOT. . :: . .Font
The font to be applied to the specified text.
- color
Type: Microsoft.SPOT.Presentation.Media. . :: . .Color
The color to be applied to the specified text.
- x
Type: System. . :: . .Int32
The horizontal coordinate at which the drawing of the specified text is to begin.
- y
Type: System. . :: . .Int32
The vertical coordinate at which the drawing of the specified text is to begin.
.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.