Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FontFamily.GetTypefaces Method ()

 

Returns a collection of Typeface objects that represent the type faces in the default system font location.

This API is not CLS-compliant.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

[CLSCompliantAttribute(false)]
public ICollection<Typeface> GetTypefaces()

// Return the font family for the selected font name.
FontFamily fontFamily = new FontFamily("Palatino Linotype");

// Return the collection of typefaces for the font family.
System.Collections.Generic.ICollection<Typeface> typefaces = fontFamily.GetTypefaces();

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft