Find all Font installed From your System

Santosh4u
Posted by Santosh4u under C# category on | Views : 1862
hi
This code will help u to find all the BorderStyle Available in VS 2005.
Drag a list box(lstFontStyle) and a button( btnLoadFontStyle) from tool box
under button click write the below code.
 protected void btnLoadFontStyle_Click(object sender, EventArgs e)
{
InstalledFontCollection fontList = new InstalledFontCollection();
foreach (FontFamily Family in fontList.Families)
{
lstFontStyle.Items.Add(Family.Name);
}
}


Ragards
Santosh

Comments or Responses

Posted by: Poster on: 10/8/2009 Level:Starter | Status: [Member]
Hi Santosh,

This code snippet is not complete, I guess this need to importa System.Drawing.Text namespace to work.

Thanks

Login to post response