Version

MeasureString Method

Measures a string with the specified parameters.
Overload List
OverloadDescription
MeasureString(DrawStringParameters)Measures a string with the specified parameters.  
MeasureString(DrawStringParameters,Int32,Int32)Measures a string with the specified parameters.  
MeasureString(Graphics,String,Font)Wraps the MeasureText method of the TextRenderer class.  
MeasureString(Graphics,String,Font,EmbeddableEditorOwnerBase,Object)Wraps the MeasureText method of the TextRenderer class.  
MeasureString(Graphics,String,Font,StringFormat,EmbeddableEditorOwnerBase,Object)Wraps the MeasureText method of the TextRenderer class.  
MeasureString(Graphics,String,Font,StringFormat,GdiDrawStringFlags)Wraps the MeasureText method of the TextRenderer class.  
MeasureString(Graphics,String,Font,Int32,StringFormat,EmbeddableEditorOwnerBase,Object)Wraps the MeasureText method of the TextRenderer class.  
MeasureString(Graphics,String,Font,Int32,EmbeddableEditorOwnerBase,Object)Wraps the MeasureText method of the TextRenderer class.  
MeasureString(Graphics,String,Font,Int32)Wraps the MeasureText method of the TextRenderer class.  
MeasureString(Graphics,String,Font,Int32,StringFormat)Wraps the MeasureText method of the TextRenderer class.  
MeasureString(Graphics,String,Font,SizeF)Wraps the MeasureText method of the TextRenderer class.  
MeasureString(Graphics,String,Font,PointF,StringFormat)Wraps the MeasureText method of the TextRenderer class.  
MeasureString(Graphics,String,Font,SizeF,StringFormat)Wraps the MeasureText method of the TextRenderer class.  
MeasureString(Graphics,String,Font,SizeF,StringFormat,Int32,Int32)Wraps the MeasureText method of the TextRenderer class.  
MeasureString(Graphics,String,Font,GdiDrawStringFlags)Wraps the MeasureText method of the TextRenderer class.  
MeasureString(Graphics,String,Font,Int32,GdiDrawStringFlags)Wraps the MeasureText method of the TextRenderer class.  
MeasureString(Graphics,String,Font,Int32,StringFormat,GdiDrawStringFlags)Wraps the MeasureText method of the TextRenderer class.  
MeasureString(Graphics,String,Font,SizeF,GdiDrawStringFlags)Wraps the MeasureText method of the TextRenderer class.  
MeasureString(Graphics,String,Font,PointF,StringFormat,GdiDrawStringFlags)Wraps the MeasureText method of the TextRenderer class.  
MeasureString(Graphics,String,Font,SizeF,StringFormat,GdiDrawStringFlags)Wraps the MeasureText method of the TextRenderer class.  
MeasureString(Graphics,String,Font,SizeF,StringFormat,Int32,Int32,GdiDrawStringFlags)Wraps the MeasureText method of the TextRenderer class.  
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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