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





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

Parameters

text
The text.
font
The font.
layoutArea
The layout area.
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.