[]
Draws the text.
public static void Draw(Graphics g, string s, Font font, Color foreColor, RectangleF rectangle, HorizontalAlignment halign, VerticalAlignment valign, TextOrientation textOrientation, bool wordWrap, bool multiline, HotkeyPrefix hotkeyPrefix, StringTrimming stringTrim, int drawRectHeight, bool adjust, double rotationAngle, int textIndent, bool isRTL)
Public Shared Sub Draw(g As Graphics, s As String, font As Font, foreColor As Color, rectangle 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, textIndent As Integer, isRTL As Boolean)
Type | Name | Description |
---|---|---|
Graphics | g | Graphics device interface for painting the text |
string | s | Text to draw |
Font | font | Font of the text |
Color | foreColor | Color of the text |
RectangleF | rectangle | Bounding rectangle of the text |
HorizontalAlignment | halign | Horizontal alignment settings of the text relative to its bounding rectangle |
VerticalAlignment | valign | Vertical alignment settings of the text relative to its bounding rectangle |
TextOrientation | textOrientation | Orientation of the text |
bool | wordWrap | Whether the text is wrapped to multiple lines |
bool | multiline | Whether to allow text to go to multiple lines |
HotkeyPrefix | hotkeyPrefix | Hotkey prefix style of the text |
StringTrimming | stringTrim | Trimming effect of the text |
int | drawRectHeight | Height of the drawing rectangle |
bool | adjust | Whether to adjust the bounding rectangle of the text when drawing |
double | rotationAngle | Rotation angle of the text |
int | textIndent | Number of pixels to indent the text |
bool | isRTL | Whether layout is right-to-left |
Draws the text.
public static void Draw(DrawTextArgs args)
Public Shared Sub Draw(args As DrawTextArgs)
Type | Name | Description |
---|---|---|
DrawTextArgs | args | Draw Text arguments. |