GetRotatedTextSize(Graphics,String,Font,RectangleF,TextOrientation,Boolean,HotkeyPrefix,StringTrimming) Method
Gets the size of the specified text when drawn with the specified font, orientation, wrapping, hotkey prefix, and string trimming.
'Declaration
Public Overloads Shared Function GetRotatedTextSize( _
ByVal As Graphics, _
ByVal As String, _
ByVal As Font, _
ByVal As RectangleF, _
ByVal As TextOrientation, _
ByVal As Boolean, _
ByVal As HotkeyPrefix, _
ByVal As StringTrimming _
) 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 value As SizeF
value = ElementWindowless.GetRotatedTextSize(g, s, font, r, textOrientation, wordWrap, hotkeyPrefix, stringTrim)
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
Return Value
SizeF