'Declaration
Public Overloads Shared Function GetRotatedTextSize( _
ByVal As Graphics, _
ByVal As String, _
ByVal As Font, _
ByVal As Rectangle, _
ByVal As TextOrientation, _
ByVal As Boolean, _
ByVal As HotkeyPrefix, _
ByVal As StringTrimming _
) As Size
'使用法
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)