[]
        
(Showing Draft Content)

FarPoint.Win.ElementWindowless.GetRotatedTextSize

GetRotatedTextSize Method

GetRotatedTextSize(Graphics, string, Font, Rectangle, TextOrientation, bool, HotkeyPrefix, StringTrimming)

Gets the size of the specified text when drawn with the specified font, orientation, wrapping, hotkey prefix, and string trimming.

Declaration
public static Size GetRotatedTextSize(Graphics g, string s, Font font, Rectangle r, TextOrientation textOrientation, bool wordWrap, HotkeyPrefix hotkeyPrefix, StringTrimming stringTrim)
Public Shared Function GetRotatedTextSize(g As Graphics, s As String, font As Font, r As Rectangle, textOrientation As TextOrientation, wordWrap As Boolean, hotkeyPrefix As HotkeyPrefix, stringTrim As StringTrimming) As Size
Parameters
Type Name Description
Graphics g

GDI+ graphics surface

string s

String

Font font

Font

Rectangle r

Rectangle

TextOrientation textOrientation

Text orientation

bool wordWrap

True to wrap text, false otherwise.

HotkeyPrefix hotkeyPrefix

HotkeyPrefix

StringTrimming stringTrim

StringTrimming

Returns
Type Description
Size

Size

GetRotatedTextSize(Graphics, string, Font, RectangleF, TextOrientation, bool, HotkeyPrefix, StringTrimming)

Gets the size of the specified text when drawn with the specified font, orientation, wrapping, hotkey prefix, and string trimming.

Declaration
public static SizeF GetRotatedTextSize(Graphics g, string s, Font font, RectangleF r, TextOrientation textOrientation, bool wordWrap, HotkeyPrefix hotkeyPrefix, StringTrimming stringTrim)
Public Shared Function GetRotatedTextSize(g As Graphics, s As String, font As Font, r As RectangleF, textOrientation As TextOrientation, wordWrap As Boolean, hotkeyPrefix As HotkeyPrefix, stringTrim As StringTrimming) As SizeF
Parameters
Type Name Description
Graphics g

GDI+ graphics surface

string s

String

Font font

Font

RectangleF r

RectangleF

TextOrientation textOrientation

Text orientation

bool wordWrap

True to wrap text, false otherwise

HotkeyPrefix hotkeyPrefix

HotkeyPrefix

StringTrimming stringTrim

StringTrimming

Returns
Type Description
SizeF

SizeF

GetRotatedTextSize(Graphics, string, Font, RectangleF, TextOrientation, bool, bool, HotkeyPrefix, StringTrimming)

Gets the size of the specified text when drawn with the specified font, orientation, wrapping, hotkey prefix, and string trimming.

Declaration
public static SizeF GetRotatedTextSize(Graphics g, string s, Font font, RectangleF r, TextOrientation textOrientation, bool wordWrap, bool multiline, HotkeyPrefix hotkeyPrefix, StringTrimming stringTrim)
Public Shared Function GetRotatedTextSize(g As Graphics, s As String, font As Font, r As RectangleF, textOrientation As TextOrientation, wordWrap As Boolean, multiline As Boolean, hotkeyPrefix As HotkeyPrefix, stringTrim As StringTrimming) As SizeF
Parameters
Type Name Description
Graphics g

GDI+ graphics surface

string s

String

Font font

Font

RectangleF r

RectangleF

TextOrientation textOrientation

Text orientation

bool wordWrap

True to wrap text, false otherwise

bool multiline

True to draw multiline text, false otherwise

HotkeyPrefix hotkeyPrefix

HotkeyPrefix

StringTrimming stringTrim

StringTrimming

Returns
Type Description
SizeF

SizeF

GetRotatedTextSize(Graphics, string, Font, RectangleF, TextOrientation, bool, HotkeyPrefix, StringTrimming, double)

Gets the size of the specified text when drawn with the specified font, orientation, wrapping, hotkey prefix, and string trimming.

Declaration
public static SizeF GetRotatedTextSize(Graphics g, string s, Font font, RectangleF r, TextOrientation textOrientation, bool wordWrap, HotkeyPrefix hotkeyPrefix, StringTrimming stringTrim, double angle)
Public Shared Function GetRotatedTextSize(g As Graphics, s As String, font As Font, r As RectangleF, textOrientation As TextOrientation, wordWrap As Boolean, hotkeyPrefix As HotkeyPrefix, stringTrim As StringTrimming, angle As Double) As SizeF
Parameters
Type Name Description
Graphics g

GDI+ graphics surface

string s

String

Font font

Font

RectangleF r

RectangleF

TextOrientation textOrientation

Text orientation

bool wordWrap

True to wrap text, false otherwise

HotkeyPrefix hotkeyPrefix

HotkeyPrefix

StringTrimming stringTrim

StringTrimming

double angle

The text rotation angle.

Returns
Type Description
SizeF

SizeF