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





text
The text.
font
The font.
layoutArea
The layout area.
stringFormat
The string format.
linesFilled
The lines filled.
endOfLineCharOffsets
The end of line character offsets.
lineHeights
The line heights.

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, _
   ByRef linesFilled As System.Integer, _
   ByRef endOfLineCharOffsets As System.Integer(), _
   ByRef lineHeights As System.Integer() _
) 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 linesFilled As System.Integer
Dim endOfLineCharOffsets As System.Integer()
Dim lineHeights As System.Integer()
Dim value As System.Drawing.SizeF
 
value = instance.MeasureString(text, font, layoutArea, stringFormat, linesFilled, endOfLineCharOffsets, lineHeights)
C# 
public System.Drawing.SizeF MeasureString( 
   System.string text,
   System.Drawing.Font font,
   System.Drawing.SizeF layoutArea,
   System.Drawing.StringFormat stringFormat,
   out System.int linesFilled,
   out System.int[] endOfLineCharOffsets,
   out System.int[] lineHeights
)
JScript 
public function MeasureString( 
   text : System.String,
   font : System.Drawing.Font,
   layoutArea : System.Drawing.SizeF,
   stringFormat : System.Drawing.StringFormat,
   linesFilled : System.int,
   endOfLineCharOffsets : System.int[],
   lineHeights : System.int[]
) : 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,
   [PARAMFLAG::Out] System.int linesFilled,
   [PARAMFLAG::Out] System.int[] endOfLineCharOffsets,
   [PARAMFLAG::Out] System.int[] lineHeights
) 
C++/CLI 
public:
System.Drawing.SizeF MeasureString( 
   System.String^ text,
   System.Drawing.Font^ font,
   System.Drawing.SizeF layoutArea,
   System.Drawing.StringFormat^ stringFormat,
   [Out] System.int linesFilled,
   [Out] System.array<int> endOfLineCharOffsets,
   [Out] System.array<int> lineHeights
) 

Parameters

text
The text.
font
The font.
layoutArea
The layout area.
stringFormat
The string format.
linesFilled
The lines filled.
endOfLineCharOffsets
The end of line character offsets.
lineHeights
The line heights.

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.