InstalledFontCollection Class

InstalledFontCollection Class

Represents the fonts installed on the system. This class cannot be inherited. For additional information on fonts and text, including example code, see Fonts and Text in the Using GDI+ Managed Classes section of these documents.

For a list of all members of this type, see InstalledFontCollection Members.


[Visual Basic]
NotInheritable Public Class InstalledFontCollection
   Inherits FontCollection
public sealed class InstalledFontCollection : FontCollection
public __gc __sealed class InstalledFontCollection : public
public class InstalledFontCollection extends FontCollection

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


GDI+ applications should not use the InstalledFontCollection class to install a font to Windows. Instead use the GDI AddFontResource function. An InstalledFontCollection object sees only fonts that are installed in Windows before the object is created.


Namespace: System.Drawing.Text

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

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

See Also

InstalledFontCollection Members | System.Drawing.Text Namespace

© 2016 Microsoft