[]
        
(Showing Draft Content)

FarPoint.Win.ElementWindowless.DrawRotatedText

DrawRotatedText Method

DrawRotatedText(Graphics, string, Font, Color, Rectangle, HorizontalAlignment, TextOrientation, bool, HotkeyPrefix, StringTrimming, int)

Draws the specified string in the specified rectangle, with the specified font, color, alignments, orientation, hotkey prefix, and wrapping.

Declaration
public static void DrawRotatedText(Graphics g, string s, Font font, Color foreColor, Rectangle rectText, HorizontalAlignment halign, TextOrientation textOrientation, bool wordWrap, HotkeyPrefix hotkeyPrefix, StringTrimming stringTrim, int drawRectHeight)
Public Shared Sub DrawRotatedText(g As Graphics, s As String, font As Font, foreColor As Color, rectText As Rectangle, halign As HorizontalAlignment, textOrientation As TextOrientation, wordWrap As Boolean, hotkeyPrefix As HotkeyPrefix, stringTrim As StringTrimming, drawRectHeight As Integer)
Parameters
Type Name Description
Graphics g

GDI+ graphics surface

string s

String to draw

Font font

Font to use

Color foreColor

Color of text

Rectangle rectText

Rectangle in which to draw string

HorizontalAlignment halign

Horizontal alignment

TextOrientation textOrientation

Text orientation

bool wordWrap

True to

HotkeyPrefix hotkeyPrefix

HotkeyPrefix

StringTrimming stringTrim

StringTrimming

int drawRectHeight

Height of the target rectangle in pixels

DrawRotatedText(Graphics, string, Font, Color, RectangleF, HorizontalAlignment, TextOrientation, bool, HotkeyPrefix, StringTrimming, int)

Draws the specified string in the specified rectangle, with the specified font, color, alignment, orientation, wrapping, hotkey prefix, and string trimming.

Declaration
public static void DrawRotatedText(Graphics g, string s, Font font, Color foreColor, RectangleF rectText, HorizontalAlignment halign, TextOrientation textOrientation, bool wordWrap, HotkeyPrefix hotkeyPrefix, StringTrimming stringTrim, int drawRectHeight)
Public Shared Sub DrawRotatedText(g As Graphics, s As String, font As Font, foreColor As Color, rectText As RectangleF, halign As HorizontalAlignment, textOrientation As TextOrientation, wordWrap As Boolean, hotkeyPrefix As HotkeyPrefix, stringTrim As StringTrimming, drawRectHeight As Integer)
Parameters
Type Name Description
Graphics g

GDI+ graphics surface

string s

String to draw

Font font

Font to use

Color foreColor

Color of text

RectangleF rectText

Rectangle in which to draw string

HorizontalAlignment halign

Horizontal alignment

TextOrientation textOrientation

Text orientation

bool wordWrap

True to wrap text, false otherwise

HotkeyPrefix hotkeyPrefix

HotkeyPrefix

StringTrimming stringTrim

StringTrimming

int drawRectHeight

Height of the target rectangle in pixels

DrawRotatedText(Graphics, string, Font, Color, RectangleF, HorizontalAlignment, VerticalAlignment, TextOrientation, bool, HotkeyPrefix, StringTrimming, int)

Draws the specified string in the specified rectangle, with the specified font, color, alignment, orientation, wrapping, hotkey prefix, and string trimming.

Declaration
public static void DrawRotatedText(Graphics g, string s, Font font, Color foreColor, RectangleF rectText, HorizontalAlignment halign, VerticalAlignment valign, TextOrientation textOrientation, bool wordWrap, HotkeyPrefix hotkeyPrefix, StringTrimming stringTrim, int drawRectHeight)
Public Shared Sub DrawRotatedText(g As Graphics, s As String, font As Font, foreColor As Color, rectText As RectangleF, halign As HorizontalAlignment, valign As VerticalAlignment, textOrientation As TextOrientation, wordWrap As Boolean, hotkeyPrefix As HotkeyPrefix, stringTrim As StringTrimming, drawRectHeight As Integer)
Parameters
Type Name Description
Graphics g

GDI+ graphics surface

string s

String to draw

Font font

Font to use

Color foreColor

Color of text

RectangleF rectText

Rectangle in which to draw string

HorizontalAlignment halign

Horizontal alignment

VerticalAlignment valign

Vertical alignment

TextOrientation textOrientation

Text orientation

bool wordWrap

True to wrap text, false otherwise

HotkeyPrefix hotkeyPrefix

HotkeyPrefix

StringTrimming stringTrim

StringTrimming

int drawRectHeight

Height of the target rectangle in pixels

DrawRotatedText(Graphics, string, Font, Color, RectangleF, HorizontalAlignment, VerticalAlignment, TextOrientation, bool, HotkeyPrefix, StringTrimming, int, bool)

Draws the specified string in the specified rectangle, with the specified font, color, alignment, orientation, wrapping, hotkey prefix, and string trimming.

Declaration
public static void DrawRotatedText(Graphics g, string s, Font font, Color foreColor, RectangleF rectText, HorizontalAlignment halign, VerticalAlignment valign, TextOrientation textOrientation, bool wordWrap, HotkeyPrefix hotkeyPrefix, StringTrimming stringTrim, int drawRectHeight, bool adjust)
Public Shared Sub DrawRotatedText(g As Graphics, s As String, font As Font, foreColor As Color, rectText As RectangleF, halign As HorizontalAlignment, valign As VerticalAlignment, textOrientation As TextOrientation, wordWrap As Boolean, hotkeyPrefix As HotkeyPrefix, stringTrim As StringTrimming, drawRectHeight As Integer, adjust As Boolean)
Parameters
Type Name Description
Graphics g

GDI+ graphics surface

string s

String to draw

Font font

Font to use

Color foreColor

Color of text

RectangleF rectText

Rectangle in which to draw string

HorizontalAlignment halign

Horizontal alignment

VerticalAlignment valign

Vertical alignment

TextOrientation textOrientation

Text orientation

bool wordWrap

True to wrap text, false otherwise

HotkeyPrefix hotkeyPrefix

HotkeyPrefix

StringTrimming stringTrim

StringTrimming

int drawRectHeight

Height of the target rectangle in pixels

bool adjust

Whether to adjust the rectangle for alignment

DrawRotatedText(Graphics, string, Font, Color, RectangleF, HorizontalAlignment, VerticalAlignment, TextOrientation, bool, HotkeyPrefix, StringTrimming, int, bool, float)

Draws the specified string in the specified rectangle, with the specified font, color, alignment, orientation, wrapping, hotkey prefix, and string trimming.

Declaration
public static void DrawRotatedText(Graphics g, string s, Font font, Color foreColor, RectangleF rectText, HorizontalAlignment halign, VerticalAlignment valign, TextOrientation textOrientation, bool wordWrap, HotkeyPrefix hotkeyPrefix, StringTrimming stringTrim, int drawRectHeight, bool adjust, float rotationAngle)
Public Shared Sub DrawRotatedText(g As Graphics, s As String, font As Font, foreColor As Color, rectText As RectangleF, halign As HorizontalAlignment, valign As VerticalAlignment, textOrientation As TextOrientation, wordWrap As Boolean, hotkeyPrefix As HotkeyPrefix, stringTrim As StringTrimming, drawRectHeight As Integer, adjust As Boolean, rotationAngle As Single)
Parameters
Type Name Description
Graphics g

GDI+ graphics surface

string s

String to draw

Font font

Font to use

Color foreColor

Color of text

RectangleF rectText

Rectangle in which to draw string

HorizontalAlignment halign

Horizontal alignment

VerticalAlignment valign

Vertical alignment

TextOrientation textOrientation

Text orientation

bool wordWrap

True to wrap text, false otherwise

HotkeyPrefix hotkeyPrefix

HotkeyPrefix

StringTrimming stringTrim

StringTrimming

int drawRectHeight

Height of the target rectangle in pixels

bool adjust

Whether to adjust the rectangle for alignment

float rotationAngle

Angle to rotate text

DrawRotatedText(Graphics, string, Font, Color, RectangleF, HorizontalAlignment, VerticalAlignment, TextOrientation, bool, bool, HotkeyPrefix, StringTrimming, int, bool, float)

Draws the specified string in the specified rectangle, with the specified font, color, alignment, orientation, wrapping, hotkey prefix, string trimming, and rotation angle.

Declaration
public static void DrawRotatedText(Graphics g, string s, Font font, Color foreColor, RectangleF rectText, HorizontalAlignment halign, VerticalAlignment valign, TextOrientation textOrientation, bool wordWrap, bool multiline, HotkeyPrefix hotkeyPrefix, StringTrimming stringTrim, int drawRectHeight, bool adjust, float rotationAngle)
Public Shared Sub DrawRotatedText(g As Graphics, s As String, font As Font, foreColor As Color, rectText As RectangleF, halign As HorizontalAlignment, valign As VerticalAlignment, textOrientation As TextOrientation, wordWrap As Boolean, multiline As Boolean, hotkeyPrefix As HotkeyPrefix, stringTrim As StringTrimming, drawRectHeight As Integer, adjust As Boolean, rotationAngle As Single)
Parameters
Type Name Description
Graphics g

GDI+ graphics surface

string s

String to draw

Font font

Font to use

Color foreColor

Color of text

RectangleF rectText

Rectangle in which to draw string

HorizontalAlignment halign

Horizontal alignment

VerticalAlignment valign

Vertical alignment

TextOrientation textOrientation

Text orientation

bool wordWrap

True to wrap text, false otherwise

bool multiline

True for multiline text

HotkeyPrefix hotkeyPrefix

HotkeyPrefix

StringTrimming stringTrim

StringTrimming

int drawRectHeight

Height of the target rectangle in pixels

bool adjust

Whether to adjust the rectangle for alignment

float rotationAngle

Angle to rotate text

DrawRotatedText(Graphics, string, Font, Color, RectangleF, HorizontalAlignment, VerticalAlignment, TextOrientation, bool, HotkeyPrefix, StringTrimming, int, bool, double, bool)

Draws the specified string in the specified rectangle, with the specified font, color, alignment, orientation, wrapping, hotkey prefix, string trimming, and rotation angle.

Declaration
public static void DrawRotatedText(Graphics g, string s, Font font, Color foreColor, RectangleF rectText, HorizontalAlignment halign, VerticalAlignment valign, TextOrientation textOrientation, bool wordWrap, HotkeyPrefix hotkeyPrefix, StringTrimming stringTrim, int drawRectHeight, bool adjust, double rotationAngle, bool rightToLeft)
Public Shared Sub DrawRotatedText(g As Graphics, s As String, font As Font, foreColor As Color, rectText As RectangleF, halign As HorizontalAlignment, valign As VerticalAlignment, textOrientation As TextOrientation, wordWrap As Boolean, hotkeyPrefix As HotkeyPrefix, stringTrim As StringTrimming, drawRectHeight As Integer, adjust As Boolean, rotationAngle As Double, rightToLeft As Boolean)
Parameters
Type Name Description
Graphics g

GDI+ graphics surface

string s

String to draw

Font font

Font to use

Color foreColor

Color of text

RectangleF rectText

Rectangle in which to draw string

HorizontalAlignment halign

Horizontal alignment

VerticalAlignment valign

Vertical alignment

TextOrientation textOrientation

Text orientation

bool wordWrap

True to wrap text, false otherwise

HotkeyPrefix hotkeyPrefix

HotkeyPrefix

StringTrimming stringTrim

StringTrimming

int drawRectHeight

Height of the target rectangle in pixels

bool adjust

Whether to adjust the rectangle for alignment

double rotationAngle

Angle to rotate text

bool rightToLeft

True for right to left rendering

DrawRotatedText(Graphics, string, Font, Color, RectangleF, HorizontalAlignment, VerticalAlignment, TextOrientation, bool, bool, HotkeyPrefix, StringTrimming, int, bool, double, bool)

Draws the specified string in the specified rectangle, with the specified font, color, alignment, orientation, wrapping, hotkey prefix, string trimming, and rotation angle.

Declaration
public static void DrawRotatedText(Graphics g, string s, Font font, Color foreColor, RectangleF rectText, HorizontalAlignment halign, VerticalAlignment valign, TextOrientation textOrientation, bool wordWrap, bool multiline, HotkeyPrefix hotkeyPrefix, StringTrimming stringTrim, int drawRectHeight, bool adjust, double rotationAngle, bool rightToLeft)
Public Shared Sub DrawRotatedText(g As Graphics, s As String, font As Font, foreColor As Color, rectText As RectangleF, halign As HorizontalAlignment, valign As VerticalAlignment, textOrientation As TextOrientation, wordWrap As Boolean, multiline As Boolean, hotkeyPrefix As HotkeyPrefix, stringTrim As StringTrimming, drawRectHeight As Integer, adjust As Boolean, rotationAngle As Double, rightToLeft As Boolean)
Parameters
Type Name Description
Graphics g

GDI+ graphics surface

string s

String to draw

Font font

Font to use

Color foreColor

Color of text

RectangleF rectText

Rectangle in which to draw string

HorizontalAlignment halign

Horizontal alignment

VerticalAlignment valign

Vertical alignment

TextOrientation textOrientation

Text orientation

bool wordWrap

True to wrap text, false otherwise

bool multiline

True to draw text multiline, false otherwise

HotkeyPrefix hotkeyPrefix

HotkeyPrefix

StringTrimming stringTrim

StringTrimming

int drawRectHeight

Height of the target rectangle in pixels

bool adjust

Whether to adjust the rectangle for alignment

double rotationAngle

Angle to rotate text

bool rightToLeft

True for right to left rendering

DrawRotatedText(Graphics, string, Font, Color, RectangleF, HorizontalAlignment, VerticalAlignment, TextOrientation, bool, bool, HotkeyPrefix, StringTrimming, int, bool, double, int, bool)

Draws the specified string in the specified rectangle, with the specified font, color, alignment, orientation, wrapping, hotkey prefix, string trimming, and rotation angle.

Declaration
public static void DrawRotatedText(Graphics g, string s, Font font, Color foreColor, RectangleF rectText, HorizontalAlignment halign, VerticalAlignment valign, TextOrientation textOrientation, bool wordWrap, bool multiline, HotkeyPrefix hotkeyPrefix, StringTrimming stringTrim, int drawRectHeight, bool adjust, double rotationAngle, int txtIndent, bool rightToLeft)
Public Shared Sub DrawRotatedText(g As Graphics, s As String, font As Font, foreColor As Color, rectText As RectangleF, halign As HorizontalAlignment, valign As VerticalAlignment, textOrientation As TextOrientation, wordWrap As Boolean, multiline As Boolean, hotkeyPrefix As HotkeyPrefix, stringTrim As StringTrimming, drawRectHeight As Integer, adjust As Boolean, rotationAngle As Double, txtIndent As Integer, rightToLeft As Boolean)
Parameters
Type Name Description
Graphics g

GDI+ graphics surface

string s

String to draw

Font font

Font to use

Color foreColor

Color of text

RectangleF rectText

Rectangle in which to draw string

HorizontalAlignment halign

Horizontal alignment

VerticalAlignment valign

Vertical alignment

TextOrientation textOrientation

Text orientation

bool wordWrap

True to wrap text, false otherwise

bool multiline

True to draw text multiline, false otherwise

HotkeyPrefix hotkeyPrefix

HotkeyPrefix

StringTrimming stringTrim

StringTrimming

int drawRectHeight

Height of the target rectangle in pixels

bool adjust

Whether to adjust the rectangle for alignment

double rotationAngle

Angle to rotate text

int txtIndent

Amount of pixels to indent text

bool rightToLeft

True for right to left rendering