Method DrawText
DrawText(string, Font, Brush, PointD)
Draws the specified text string at the specified location with the specified Brush and Font objects.
public abstract void DrawText(string text, Font font, Brush brush, PointD origin)
Parameters
text
stringString to draw.
font
FontFont that defines the text format of the string.
brush
BrushBrush that determines the color and texture of the drawn text.
origin
PointDPointD structure that specifies the upper-left corner of the drawn text.
DrawText(string[], Font, Brush, PointD)
public virtual void DrawText(string[] text, Font font, Brush brush, PointD origin)
Parameters
text
string[]Strings to draw.
font
FontFont that defines the text format of the string.
brush
BrushBrush that determines the color and texture of the drawn text.
origin
PointDPointD structure that specifies the upper-left corner of the drawn text.
DrawText(string, PointD)
Draws text with DefaultFont and Default.
public void DrawText(string text, PointD origin)
Parameters
DrawText(string, Font, Brush, RectD)
Draws the specified text string at the specified location with the specified Brush and Font objects.
public abstract void DrawText(string text, Font font, Brush brush, RectD bounds)
Parameters
text
stringString to draw.
font
FontFont that defines the text format of the string.
brush
BrushBrush that determines the color and texture of the drawn text.
bounds
RectDRectD structure that specifies the bounds of the drawn text.
DrawText(string, PointD, Font, Color, Color)
Draws text with the specified font, background and foreground colors.
public abstract void DrawText(string text, PointD location, Font font, Color foreColor, Color backColor)