Spread Windows Forms 8.0 Product Documentation
GetRotatedTextSize(Graphics,String,Font,RectangleF,TextOrientation,Boolean,HotkeyPrefix,StringTrimming,Double) Method


GDI+ graphics surface
String
Font
RectangleF
Text orientation
True to wrap text, false otherwise
HotkeyPrefix
StringTrimming
The text rotation angle.
Gets the size of the specified text when drawn with the specified font, orientation, wrapping, hotkey prefix, and string trimming.
Syntax
'Declaration
 
Public Overloads Shared Function GetRotatedTextSize( _
   ByVal g As Graphics, _
   ByVal s As String, _
   ByVal font As Font, _
   ByVal r As RectangleF, _
   ByVal textOrientation As TextOrientation, _
   ByVal wordWrap As Boolean, _
   ByVal hotkeyPrefix As HotkeyPrefix, _
   ByVal stringTrim As StringTrimming, _
   ByVal angle As Double _
) As SizeF
'Usage
 
Dim g As Graphics
Dim s As String
Dim font As Font
Dim r As RectangleF
Dim textOrientation As TextOrientation
Dim wordWrap As Boolean
Dim hotkeyPrefix As HotkeyPrefix
Dim stringTrim As StringTrimming
Dim angle As Double
Dim value As SizeF
 
value = ElementWindowless.GetRotatedTextSize(g, s, font, r, textOrientation, wordWrap, hotkeyPrefix, stringTrim, angle)
public static SizeF GetRotatedTextSize( 
   Graphics g,
   string s,
   Font font,
   RectangleF r,
   TextOrientation textOrientation,
   bool wordWrap,
   HotkeyPrefix hotkeyPrefix,
   StringTrimming stringTrim,
   double angle
)

Parameters

g
GDI+ graphics surface
s
String
font
Font
r
RectangleF
textOrientation
Text orientation
wordWrap
True to wrap text, false otherwise
hotkeyPrefix
HotkeyPrefix
stringTrim
StringTrimming
angle
The text rotation angle.

Return Value

SizeF
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

Reference

ElementWindowless Class
ElementWindowless Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.