Viewport.DrawText (Int32, Int32, String, Font, Color, ContentAlignment) Method

Draws a text on the Model's client area.
Protected Friend Sub DrawText( _ 
ByVal x As Integer, _ 
ByVal y As Integer, _ 
ByVal text As String, _ 
ByVal textFont As Font, _ 
ByVal textColor As Color, _ 
ByVal textAlign As ContentAlignment
)
This language is not supported or no code example is available.
internal protected void DrawText( 
int x
int y
string text
Font textFont
Color textColor
ContentAlignment textAlign 
)
This language is not supported or no code example is available.

Parameters

x
int

The text's x coordinate

y
int

The text's y coordinate (from the bottom of the viewport)

text
string

The text string to draw

textFont
Font

The text font

textColor
Color

The text color

textAlign
ContentAlignment

The text alignment

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition