FarPoint.Win Assembly > FarPoint.Win Namespace > ElementWindowless Class > GetRotatedTextSize Method : GetRotatedTextSize(Graphics,String,Font,Rectangle,TextOrientation,Boolean,HotkeyPrefix,StringTrimming) Method |
'Declaration Public Overloads Shared Function GetRotatedTextSize( _ ByVal g As Graphics, _ ByVal s As String, _ ByVal font As Font, _ ByVal r As Rectangle, _ ByVal textOrientation As TextOrientation, _ ByVal wordWrap As Boolean, _ ByVal hotkeyPrefix As HotkeyPrefix, _ ByVal stringTrim As StringTrimming _ ) As Size
'Usage Dim g As Graphics Dim s As String Dim font As Font Dim r As Rectangle Dim textOrientation As TextOrientation Dim wordWrap As Boolean Dim hotkeyPrefix As HotkeyPrefix Dim stringTrim As StringTrimming Dim value As Size value = ElementWindowless.GetRotatedTextSize(g, s, font, r, textOrientation, wordWrap, hotkeyPrefix, stringTrim)
public static Size GetRotatedTextSize( Graphics g, string s, Font font, Rectangle r, TextOrientation textOrientation, bool wordWrap, HotkeyPrefix hotkeyPrefix, StringTrimming stringTrim )
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8