DrawRotatedText(Graphics,String,Font,Color,Rectangle,HorizontalAlignment,TextOrientation,Boolean,HotkeyPrefix,StringTrimming,Int32) Method
In This Topic
Draws the specified string in the specified rectangle, with the specified font, color, alignments, orientation, hotkey prefix, and wrapping.
Syntax
'Declaration
Public Overloads Shared Sub DrawRotatedText( _
ByVal As Graphics, _
ByVal As String, _
ByVal As Font, _
ByVal As Color, _
ByVal As Rectangle, _
ByVal As HorizontalAlignment, _
ByVal As TextOrientation, _
ByVal As Boolean, _
ByVal As HotkeyPrefix, _
ByVal As StringTrimming, _
ByVal As Integer _
)
'Usage
Dim g As Graphics
Dim s As String
Dim font As Font
Dim foreColor As Color
Dim rectText As Rectangle
Dim halign As HorizontalAlignment
Dim textOrientation As TextOrientation
Dim wordWrap As Boolean
Dim hotkeyPrefix As HotkeyPrefix
Dim stringTrim As StringTrimming
Dim drawRectHeight As Integer
ElementWindowless.DrawRotatedText(g, s, font, foreColor, rectText, halign, textOrientation, wordWrap, hotkeyPrefix, stringTrim, drawRectHeight)
public static void DrawRotatedText(
Graphics ,
string ,
Font ,
Color ,
Rectangle ,
HorizontalAlignment ,
TextOrientation ,
bool ,
HotkeyPrefix ,
StringTrimming ,
int
)
Parameters
- g
- GDI+ graphics surface
- s
- String to draw
- font
- Font to use
- foreColor
- Color of text
- rectText
- Rectangle in which to draw string
- halign
- Horizontal alignment
- textOrientation
- Text orientation
- wordWrap
- True to
- hotkeyPrefix
- HotkeyPrefix
- stringTrim
- StringTrimming
- drawRectHeight
- Height of the target rectangle in pixels
See Also