DekGenius.com
[ Team LiB ] Previous Section Next Section

GenericFontFamiliesserializable

System.Drawing.Text (system.drawing.dll)enum

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()

    [ Team LiB ] Previous Section Next Section