WebPlanner Programmer's Guide

GraphicsEx.DrawString Method (String, Font, TextAlignment, Brush, Rectangle)

See Also
 


Draws the specified text string in the specified rectangle with the specified Brush and Font objects, and alignment.

Namespace: MindFusion.Drawing
Assembly: MindFusion.Scheduling.Compact

 Syntax

C#  Copy Code

public void DrawString (
    string s,
    Font f,
    TextAlignment alignment,
    Brush brush,
    Rectangle rect
)

Visual Basic  Copy Code

Public Sub DrawString ( _
    s As String, _
    f As Font, _
    alignment As TextAlignment, _
    brush As Brush, _
    rect As Rectangle _
)

 Parameters

s
A string to draw.
f
A .NET Font object that defines the text format of the string.
alignment
The alignment of the drawn string relative to the specified rectangle.
brush
A .NET System.Drawing.Brush object that determines the color and texture of the drawn text.
rect
A .NET Rectangle structure that specifies the location of the drawn text.

 See Also