System.Windows.Forms.FontDialog Members

The members of System.Windows.Forms.FontDialog are listed below.

See Also: Inherited members from System.Windows.Forms.CommonDialog

Public Constructors

Initializes a new instance of the System.Windows.Forms.FontDialog class.

Protected Fields

static readonly
EventApplyobject.

Owns the FontDialog.Apply event.

Public Properties

AllowScriptChangebool.

Gets or sets a value indicating whether the user can change the character set specified in the Script combo box to display a character set other than the one currently displayed.

AllowSimulationsbool.

Gets or sets a value indicating whether the dialog box allows graphics device interface (GDI) font simulations.

AllowVectorFontsbool.

Gets or sets a value indicating whether the dialog box allows vector font selections.

AllowVerticalFontsbool.

Gets or sets a value indicating whether the dialog box displays both vertical and horizontal fonts or only horizontal fonts.

ColorSystem.Drawing.Color.

Gets or sets the selected font color.

FixedPitchOnlybool.

Gets or sets a value indicating whether the dialog box allows only the selection of fixed-pitch fonts.

FontSystem.Drawing.Font.

Gets or sets the selected font.

FontMustExistbool.

Gets or sets a value indicating whether the dialog box specifies an error condition if the user attempts to select a font or style that does not exist.

MaxSizeint.

Gets or sets the maximum point size a user can select.

MinSizeint.

Gets or sets the minimum point size a user can select.

ScriptsOnlybool.

Gets or sets a value indicating whether the dialog box allows selection of fonts for all non-OEM and Symbol character sets, as well as the ANSI character set.

ShowApplybool.

Gets or sets a value indicating whether the dialog box contains an Apply button.

ShowColorbool.

Gets or sets a value indicating whether the dialog box displays the color choice.

ShowEffectsbool.

Gets or sets a value indicating whether the dialog box contains controls that allow the user to specify strikethrough, underline, and text color options.

ShowHelpbool.

Gets or sets a value indicating whether the dialog box displays a Help button.

Protected Properties

[read-only]
Optionsint.

Gets values to initialize the System.Windows.Forms.FontDialog.

Public Methods

override
Reset()

Resets all dialog box options to their default values.

override
ToString() : string

Retrieves a string that includes the name of the current font selected in the dialog box.

Protected Methods

override
HookProc(IntPtr, int, IntPtr, IntPtr) : IntPtr

Specifies the common dialog box hook procedure that is overridden to add specific functionality to a common dialog box.

OnApply(EventArgs)

Raises the FontDialog.Apply event.

override
RunDialog(IntPtr) : bool

Specifies a file dialog box.

Public Events

Apply

Occurs when the user clicks the Apply button in the font dialog box.