Search
IGraphics.DrawString Method (String, Font, Brush, RectangleF, StringFormat)
See Also
 





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

Namespace: MindFusion.Drawing
Package: MindFusion.Common

 Syntax

C#  Copy Code

void DrawString (
    string s,
    Font font,
    Brush brush,
    RectangleF layoutRectangle,
    StringFormat format
)

Visual Basic  Copy Code

Sub DrawString( _
    s As String, _
    font As Font, _
    brush As Brush, _
    layoutRectangle As RectangleF, _
    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.
layoutRectangle
A .NET RectangleF structure that specifies the location 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