ImageMan.Net Version 3 Summer 2012 Release
DrawString(String,Font,Brush,RectangleF,StringFormat) Method
See Also  Send Feedback
DTI.ImageMan Namespace > ImGraphic Class > DrawString Method : DrawString(String,Font,Brush,RectangleF,StringFormat) Method





s
The string to draw.
font
The font.
brush
The brush.
layoutRectangle
The layout rectangle.
format
The String Format describing how to draw the text.

Glossary Item Box

Draws the string.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub DrawString( _
   ByVal s As System.String, _
   ByVal font As System.Drawing.Font, _
   ByVal brush As System.Drawing.Brush, _
   ByVal layoutRectangle As System.Drawing.RectangleF, _
   ByVal format As System.Drawing.StringFormat _
) 
Visual Basic (Usage)Copy Code
Dim instance As ImGraphic
Dim s As System.String
Dim font As System.Drawing.Font
Dim brush As System.Drawing.Brush
Dim layoutRectangle As System.Drawing.RectangleF
Dim format As System.Drawing.StringFormat
 
instance.DrawString(s, font, brush, layoutRectangle, format)
C# 
public void DrawString( 
   System.string s,
   System.Drawing.Font font,
   System.Drawing.Brush brush,
   System.Drawing.RectangleF layoutRectangle,
   System.Drawing.StringFormat format
)
JScript 
public function DrawString( 
   s : System.String,
   font : System.Drawing.Font,
   brush : System.Drawing.Brush,
   layoutRectangle : System.Drawing.RectangleF,
   format : System.Drawing.StringFormat
);
Managed Extensions for C++ 
public: void DrawString( 
   System.string* s,
   System.Drawing.Font* font,
   System.Drawing.Brush* brush,
   System.Drawing.RectangleF layoutRectangle,
   System.Drawing.StringFormat* format
) 
C++/CLI 
public:
void DrawString( 
   System.String^ s,
   System.Drawing.Font^ font,
   System.Drawing.Brush^ brush,
   System.Drawing.RectangleF layoutRectangle,
   System.Drawing.StringFormat^ format
) 

Parameters

s
The string to draw.
font
The font.
brush
The brush.
layoutRectangle
The layout rectangle.
format
The String Format describing how to draw the text.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2014 Data Techniques, Inc. All Rights Reserved.