Skip to main content

SystemFonts

Namespace: System.Drawing

Assembly: System.Drawing.Managed (4.0.0.0)

Specifies the fonts used to display text in Windows display elements.

public class SystemFonts

Properties

Static member CaptionFont

Font: Gets a Font that is used to display text in the title bars of windows.

Static member DefaultFont

Font: Gets the default font that applications can use for dialog boxes and forms.

Static member DialogFont

Font: Gets a font that applications can use for dialog boxes and forms.

Static member IconTitleFont

Font: Gets a Font that is used for icon titles.

Font: Gets a Font that is used for menus.

Static member MessageBoxFont

Font: Gets a Font that is used for message boxes.

Static member SmallCaptionFont

Font: Gets a Font that is used to display text in the title bars of small windows, such as tool windows.

Static member StatusFont

Font: Gets a Font that is used to display text in the status bar.

Methods

Static member GetFontByName(systemFontName)

Returns a font object that corresponds to the specified system font name.

ParameterTypeDescription
systemFontNameStringThe name of the system font you need a font object for.

Returns: Font. A Font if the specified name matches a value in SystemFonts; otherwise, .