Eyeshot 10 WPF API Reference
DrawText(Int32,Int32,String,Font,Color,Color,ContentAlignment,RotateFlipType) Method

WPF Assembly > devDept.Eyeshot Namespace > ViewportLayout Class > DrawText Method : DrawText(Int32,Int32,String,Font,Color,Color,ContentAlignment,RotateFlipType) Method
The text x coordinate
The text 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
The text rotation
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, _
   ByVal rotateFlip As RotateFlipType _
) 
protected internal void DrawText( 
   int x,
   int y,
   string text,
   Font textFont,
   Color textColor,
   Color fillColor,
   ContentAlignment textAlign,
   RotateFlipType rotateFlip
)

Parameters

x
The text x coordinate
y
The text 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
rotateFlip
The text rotation
Remarks
For better performances use GetTextImage, create the texture and draw it directly.
See Also

Reference

ViewportLayout Class
ViewportLayout Members
Overload List
DrawTextOutlined Method
devDept.Eyeshot.ViewportLayout.DrawImage(System.Int32,System.Int32,System.Drawing.Bitmap,System.Drawing.ContentAlignment,System.Boolean,System.Boolean)