Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot Namespace / Viewport Class / DrawText Method / DrawText(Int32,Int32,String,Font,Color,Color,ContentAlignment) Method
The text's x coordinate
The text's y coordinate (from the bottom of the viewport)
The text string to draw
The text font
The text color
The background color (can be semi-transparent)
The text alignment

In This Topic
    DrawText(Int32,Int32,String,Font,Color,Color,ContentAlignment) Method
    In This Topic
    Draws a text on the ViewportLayout's client area.
    Syntax
    'Declaration
     
    Protected Friend Overloads Sub DrawText( _
       ByVal x As Integer, _
       ByVal y As Integer, _
       ByVal text As String, _
       ByVal textFont As Font, _
       ByVal textColor As Color, _
       ByVal fillColor As Color, _
       ByVal textAlign As ContentAlignment _
    ) 
    protected internal void DrawText( 
       int x,
       int y,
       string text,
       Font textFont,
       Color textColor,
       Color fillColor,
       ContentAlignment textAlign
    )

    Parameters

    x
    The text's x coordinate
    y
    The text's y coordinate (from the bottom of the viewport)
    text
    The text string to draw
    textFont
    The text font
    textColor
    The text color
    fillColor
    The background color (can be semi-transparent)
    textAlign
    The text alignment
    See Also

    Reference

    Viewport Class
    Viewport Members
    Overload List
    DrawTextOutlined
    DrawImage