DrawText Method (String, Font, Color, Int32, Int32, Int32, Int32, TextAlignment, TextTrimming)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Draws specified text within a bounding rectangular region on the drawing surface.

Namespace:  Microsoft.SPOT.Presentation.Media
Assembly:  Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)

Syntax

'Declaration
Public Function DrawText ( _
    ByRef text As String, _
    font As Font, _
    color As Color, _
    x As Integer, _
    y As Integer, _
    width As Integer, _
    height As Integer, _
    alignment As TextAlignment, _
    trimming As TextTrimming _
) As Boolean
public bool DrawText(
    ref string text,
    Font font,
    Color color,
    int x,
    int y,
    int width,
    int height,
    TextAlignment alignment,
    TextTrimming trimming
)
public:
bool DrawText(
    String^% text, 
    Font^ font, 
    Color color, 
    int x, 
    int y, 
    int width, 
    int height, 
    TextAlignment alignment, 
    TextTrimming trimming
)
member DrawText : 
        text:string byref * 
        font:Font * 
        color:Color * 
        x:int * 
        y:int * 
        width:int * 
        height:int * 
        alignment:TextAlignment * 
        trimming:TextTrimming -> bool 
public function DrawText(
    text : String, 
    font : Font, 
    color : Color, 
    x : int, 
    y : int, 
    width : int, 
    height : int, 
    alignment : TextAlignment, 
    trimming : TextTrimming
) : boolean

Parameters

  • x
    Type: System. . :: . .Int32
    The horizontal coordinate of the left edge of the rectangular region in which the specified text is to be drawn.
  • y
    Type: System. . :: . .Int32
    The vertical coordinate of the top edge of the rectangular region in which the specified text is to be drawn.
  • width
    Type: System. . :: . .Int32
    The width of the rectangular region in which the specified text is to be drawn.
  • height
    Type: System. . :: . .Int32
    The height of the rectangular region in which the specified text is to be drawn.

Return Value

Type: System. . :: . .Boolean
true if the text fits within the specified bounds; otherwise, false.

.NET Framework Security

See Also

Reference

DrawingContext Class

DrawText Overload

Microsoft.SPOT.Presentation.Media Namespace