Files
docs-desktop/dotnet-desktop-guide/framework/winforms/controls/fontdialog-component-overview-windows-forms.md
T
Andy De George c0ba284473 Initial winforms content migrated (#18)
* Merge winforms framework content to working branch (#14)

* Breadcrumb / TOC / Move net5 to net folder (#15)

* change path from net5 to net

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Add .net 5 winforms placeholder article (#16)

* added some metadata and adjusted net5 placeholder

* corrections

* corrections

* corrections

* Test1

* Swapping landing page vs concept

* fix links

* Fix links

* Fix desc
2020-09-01 16:26:21 -07:00

1.6 KiB

title, ms.date, f1_keywords, helpviewer_keywords, ms.assetid
title ms.date f1_keywords helpviewer_keywords ms.assetid
FontDialog Component Overview 03/30/2017
FontDialog
Font dialog box [Windows Forms], Windows Forms
Font dialog box
FontDialog component [Windows Forms], about FontDialog component
daf46e57-1b4b-4b7a-bad0-b50ca7ba75dc

FontDialog Component Overview (Windows Forms)

The Windows Forms xref:System.Windows.Forms.FontDialog component is a pre-configured dialog box, which is the standard Windows Font dialog box used to expose the fonts that are currently installed on the system. Use it within your Windows-based application as a simple solution for font selection in lieu of configuring your own dialog box.

By default, the dialog box shows list boxes for Font, Font style, and Size; check boxes for effects like Strikeout and Underline; a drop-down list for Script; and a sample of how the font will appear. (Script refers to different character scripts that are available for a given font, for example, Hebrew or Japanese.) To display the font dialog box, call the xref:System.Windows.Forms.CommonDialog.ShowDialog%2A method.

Key Properties

The component has a number of properties that configure its appearance. The properties that set the dialog-box selections are xref:System.Windows.Forms.FontDialog.Font%2A and xref:System.Windows.Forms.FontDialog.Color%2A. The xref:System.Windows.Forms.FontDialog.Font%2A property sets the font, style, size, script, and effects; for example, Arial, 10pt, style=Italic, Strikeout.

See also