Charting for WinForms Programmer's Guide
GdiGraphics.DrawString Method (String, Font, Brush, Single, Single, StringFormat)
See Also
 






Draws the specified text string at the specified location with the specified Brush and Font objects using the formatting attributes of the specified StringFormat object.

Namespace: MindFusion.Drawing
Assembly: MindFusion.Common

 Syntax

C#  Copy Code

public virtual void DrawString (
    string s,
    Font font,
    Brush brush,
    float x,
    float y,
    StringFormat format
)

Visual Basic  Copy Code

Public Overridable Sub DrawString( _
    s As String, _
    font As Font, _
    brush As Brush, _
    x As Single, _
    y As Single, _
    format As StringFormat _
)

 Parameters

s
The string to draw.
font
A .NET Font object that defines the text format of the string.
brush
A .NET Brush object that determines the color and texture of the drawn text.
x
The x-coordinate of the upper-left corner of the drawn text.
y
The y-coordinate of the upper-left corner of the drawn text.
format
A .NET StringFormat object that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text.

 See Also

DrawString Method Overload List
GdiGraphics Members
GdiGraphics Class
MindFusion.Drawing Namespace