FontFamily.Name Property


Gets the name of this FontFamily.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public string Name { get; }

Property Value

Type: System.String

A String that represents the name of this FontFamily.

The following code example shows all the font families in the Families property of the FontFamily class. This example is designed to be used with a Windows Form. To run this example, add a ListBox named listBox1 to a form, and call the PopulateListBoxWithFonts method from the form's constructor.

private void PopulateListBoxWithFonts()
    listBox1.Width = 200;
    listBox1.Location = new Point(40, 120);
    foreach ( FontFamily oneFontFamily in FontFamily.Families )

.NET Framework
Available since 1.1
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft