Click here to Skip to main content
15,886,083 members
Articles / Multimedia / GDI+

Measuring strings

Rate me:
Please Sign up or sign in to vote.
3.55/5 (20 votes)
29 Sep 20042 min read 169.2K   651   21  
An example of using the Graphics.MeasureString() method.
Microsoft Visual Studio Solution File, Format Version 7.00
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "MeasureStrings", "MeasureStrings.vbproj", "{01DF2F4D-94F4-47A0-9E96-AE0D8837AFAD}"
EndProject
Global
	GlobalSection(SolutionConfiguration) = preSolution
		ConfigName.0 = Debug
		ConfigName.1 = Release
	EndGlobalSection
	GlobalSection(ProjectDependencies) = postSolution
	EndGlobalSection
	GlobalSection(ProjectConfiguration) = postSolution
		{01DF2F4D-94F4-47A0-9E96-AE0D8837AFAD}.Debug.ActiveCfg = Debug|.NET
		{01DF2F4D-94F4-47A0-9E96-AE0D8837AFAD}.Debug.Build.0 = Debug|.NET
		{01DF2F4D-94F4-47A0-9E96-AE0D8837AFAD}.Release.ActiveCfg = Release|.NET
		{01DF2F4D-94F4-47A0-9E96-AE0D8837AFAD}.Release.Build.0 = Release|.NET
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
	EndGlobalSection
	GlobalSection(ExtensibilityAddIns) = postSolution
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Technical Lead
Italy Italy
I was born in 1970.

My first computer experience dates back to early 80s, with a Sinclair ZX81.
From that time on, as many "friends" say, my IT-illness has increased year by year.

I graduated in Electronic Engineering and earned the following Microsoft certifications:
MCP, MCT, MCDBA, MCSD, MCAD, MCSD for .NET (early achiever).

I worked in IT as a developer, a teacher, a consultant, a technical writer, a technical leader.
IT knowledge applied to real life is my primary interest and focus.

Comments and Discussions