Search
IGraphics.DrawString Method (String, Font, Brush, Point, 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

void DrawString (
    string text,
    Font font,
    Brush brush,
    Point location,
    StringFormat format
)

Visual Basic  Copy Code

Sub DrawString( _
    text As String, _
    font As Font, _
    brush As Brush, _
    location As Point, _
    format As StringFormat _
)

 Parameters

text

The string to draw.

font

A Font object that defines the text format of the string.

brush

A Brush object that determines the color and texture of the drawn text.

location

A Point structure that specifies the upper-left corner of the drawn text.

format

A StringFormat object that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text.

 See Also