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





text
The text.
font
The font.
width
The width.
format
The format.

Glossary Item Box

Measures the string.

Syntax

Visual Basic (Declaration) 
Public Overloads Function MeasureString( _
   ByVal text As System.String, _
   ByVal font As System.Drawing.Font, _
   ByVal width As System.Integer, _
   ByVal format As System.Drawing.StringFormat _
) As System.Drawing.SizeF
Visual Basic (Usage)Copy Code
Dim instance As ImGraphic
Dim text As System.String
Dim font As System.Drawing.Font
Dim width As System.Integer
Dim format As System.Drawing.StringFormat
Dim value As System.Drawing.SizeF
 
value = instance.MeasureString(text, font, width, format)
C# 
public System.Drawing.SizeF MeasureString( 
   System.string text,
   System.Drawing.Font font,
   System.int width,
   System.Drawing.StringFormat format
)
JScript 
public function MeasureString( 
   text : System.String,
   font : System.Drawing.Font,
   width : System.int,
   format : System.Drawing.StringFormat
) : System.Drawing.SizeF;
Managed Extensions for C++ 
public: System.Drawing.SizeF MeasureString( 
   System.string* text,
   System.Drawing.Font* font,
   System.int width,
   System.Drawing.StringFormat* format
) 
C++/CLI 
public:
System.Drawing.SizeF MeasureString( 
   System.String^ text,
   System.Drawing.Font^ font,
   System.int width,
   System.Drawing.StringFormat^ format
) 

Parameters

text
The text.
font
The font.
width
The width.
format
The format.

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.