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





text
The text.
font
The font.
origin
The origin.
stringFormat
The string 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 origin As System.Drawing.PointF, _
   ByVal stringFormat 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 origin As System.Drawing.PointF
Dim stringFormat As System.Drawing.StringFormat
Dim value As System.Drawing.SizeF
 
value = instance.MeasureString(text, font, origin, stringFormat)
C# 
public System.Drawing.SizeF MeasureString( 
   System.string text,
   System.Drawing.Font font,
   System.Drawing.PointF origin,
   System.Drawing.StringFormat stringFormat
)
JScript 
public function MeasureString( 
   text : System.String,
   font : System.Drawing.Font,
   origin : System.Drawing.PointF,
   stringFormat : System.Drawing.StringFormat
) : System.Drawing.SizeF;
Managed Extensions for C++ 
public: System.Drawing.SizeF MeasureString( 
   System.string* text,
   System.Drawing.Font* font,
   System.Drawing.PointF origin,
   System.Drawing.StringFormat* stringFormat
) 
C++/CLI 
public:
System.Drawing.SizeF MeasureString( 
   System.String^ text,
   System.Drawing.Font^ font,
   System.Drawing.PointF origin,
   System.Drawing.StringFormat^ stringFormat
) 

Parameters

text
The text.
font
The font.
origin
The origin.
stringFormat
The string 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.