Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win Namespace / ElementWindowless Class / DrawRotatedText Method / DrawRotatedText(Graphics,String,Font,Color,RectangleF,HorizontalAlignment,TextOrientation,Boolean,HotkeyPrefix,StringTrimming,Int32) Method
GDI+ graphics surface
String to draw
Font to use
Color of text
Rectangle in which to draw string
Horizontal alignment
Text orientation
True to wrap text, false otherwise
HotkeyPrefix
StringTrimming
Height of the target rectangle in pixels


In This Topic
    DrawRotatedText(Graphics,String,Font,Color,RectangleF,HorizontalAlignment,TextOrientation,Boolean,HotkeyPrefix,StringTrimming,Int32) Method
    In This Topic
    Draws the specified string in the specified rectangle, with the specified font, color, alignment, orientation, wrapping, hotkey prefix, and string trimming.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Sub DrawRotatedText( _
       ByVal g As Graphics, _
       ByVal s As String, _
       ByVal font As Font, _
       ByVal foreColor As Color, _
       ByVal rectText As RectangleF, _
       ByVal halign As HorizontalAlignment, _
       ByVal textOrientation As TextOrientation, _
       ByVal wordWrap As Boolean, _
       ByVal hotkeyPrefix As HotkeyPrefix, _
       ByVal stringTrim As StringTrimming, _
       ByVal drawRectHeight As Integer _
    ) 
    'Usage
     
    
    Dim g As Graphics
    Dim s As String
    Dim font As Font
    Dim foreColor As Color
    Dim rectText As RectangleF
    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)

    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 wrap text, false otherwise
    hotkeyPrefix
    HotkeyPrefix
    stringTrim
    StringTrimming
    drawRectHeight
    Height of the target rectangle in pixels
    See Also