Name

GenericFontFamilies

Synopsis

This enumeration lists the three generic font families.

Systems can have wildly different sets of fonts installed (particularly in cross-platform environments). By specifying one of the generic families, you can retrieve a Monospace, SansSerif, or Serif font appropriate to the current platform, regardless of what might actually be present. For example, the SansSerif font could be Arial on one machine and Helvetica on another.


public enum GenericFontFamilies {

   Serif = 0,

   SansSerif = 1,

   Monospace = 2

}

Hierarchy

System.Object System.ValueType System.Enum(System.IComparabl, System.IFormattable, System.IConvertible) GenericFontFamilies

Passed To

System.Drawing.FontFamily.FontFamily()

Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.