[]
Gets the size of the specified text when drawn with the specified font, orientation, wrapping, hotkey prefix, and string trimming.
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
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 |
Type | Description |
---|---|
Size | Size |
Gets the size of the specified text when drawn with the specified font, orientation, wrapping, hotkey prefix, and string trimming.
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
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 |
Type | Description |
---|---|
SizeF | SizeF |
Gets the size of the specified text when drawn with the specified font, orientation, wrapping, hotkey prefix, and string trimming.
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
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 |
Type | Description |
---|---|
SizeF | SizeF |
Gets the size of the specified text when drawn with the specified font, orientation, wrapping, hotkey prefix, and string trimming.
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
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. |
Type | Description |
---|---|
SizeF | SizeF |