System.Windows.Forms
1.0.5000.0
2.0.0.0
System.Windows.Forms.CommonDialog
System.ComponentModel.DefaultEvent("Apply")
System.ComponentModel.DefaultProperty("Font")
The inherited member must be invoked to create this specific common dialog box. can be overridden to implement specific dialog box hook functionality.
When you create an instance of , some of the read/write properties are set to initial values. For a list of these values, see the constructor.
Prompts the user to choose a font from among those installed on the local computer.
Constructor
When you create an instance of , the following read/write properties are initialized.
-
Property
Initial Value
-
true
-
true
-
true
-
true
-
Color.Black
-
false
-
0
-
0
-
false
-
false
-
false
-
true
-
false
You can change the value for any of these properties through a separate call to the property.
Initializes a new instance of the class.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(true)
System.Boolean
To be added.
The Script combo box found on the Font dialog box contains character sets associated with the selected font.
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.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(true)
System.Boolean
To be added.
To be added.
Gets or sets a value indicating whether the dialog box allows graphics device interface (GDI) font simulations.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(true)
System.Boolean
To be added.
To be added.
Gets or sets a value indicating whether the dialog box allows vector font selections.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(true)
System.Boolean
To be added.
To be added.
Gets or sets a value indicating whether the dialog box displays both vertical and horizontal fonts or only horizontal fonts.
1.0.5000.0
2.0.0.0
Event
System.EventHandler
Every time the Apply button is clicked, another event is raised.
For more information about handling events, see [<topic://cpconEventsOverview>].
Occurs when the user clicks the Apply button in the font dialog box.
1.0.5000.0
2.0.0.0
Property
System.Drawing.Color
To be added.
To be added.
Gets or sets the selected font color.
1.0.5000.0
2.0.0.0
System.ComponentModel.DefaultValue("Color [Black]")
Field
System.Object
To be added.
Owns the event.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(false)
System.Boolean
To be added.
To be added.
Gets or sets a value indicating whether the dialog box allows only the selection of fixed-pitch fonts.
1.0.5000.0
2.0.0.0
Property
System.Drawing.Font
To be added.
To be added.
Gets or sets the selected font.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(false)
System.Boolean
To be added.
To be added.
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.
1.0.5000.0
2.0.0.0
Method
System.IntPtr
A hook procedure is a mechanism by which a function can intercept events before they reach an application. When you override the method for a class, the operating system invokes your override of the function to post operating system messages to the window.
Specifies the common dialog box hook procedure that is overridden to add specific functionality to a common dialog box.
A zero value if the default dialog box procedure processes the message; a nonzero value if the default dialog box procedure ignores the message.
The handle to the dialog box window.
The message being received.
Additional information about the message.
Additional information about the message.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(0)
System.Int32
To be added.
In order for the maximum and minimum size settings to take effect, must be greater than , and both must be greater than 0.
Attempts to set this property to values less than 0 will result in a value of 0 being used. If you set to a value less than , is set to . The effect of setting and to the same values is to limit the size selection to a single font size.
When the point size is 0, there are no font size limits.
Gets or sets the maximum point size a user can select.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(0)
System.Int32
To be added.
In order for the maximum and minimum size settings to take effect, must be greater than , and both must be greater than 0.
Attempts to set this property to values less than 0 will result in a value of 0 being used. If you set to a value greater than , is set to the value of . The effect of setting and to the same value is to limit the size selection to a single font size.
When the point size is 0, there are no font size limits.
Gets or sets the minimum point size a user can select.
1.0.5000.0
2.0.0.0
Method
System.Void
Raising an event invokes the event handler through a delegate. For an overview, see [<topic://cpconProvidingEventFunctionality>].
Raises the event.
An that contains the data.
1.0.5000.0
2.0.0.0
Property
System.Int32
To be added.
The property corresponds to the flags used to initialize a color dialog box using Win32. Use the properties of the class to get and set the options.
Gets values to initialize the .
1.0.5000.0
2.0.0.0
Method
System.Void
When the options are reset, the strikethrough, underline, and color effects are enabled. The fonts listed include only the screen fonts supported by the system.
Resets all dialog box options to their default values.
1.0.5000.0
2.0.0.0
Method
System.Boolean
The method is invoked when the user of a font dialog box calls the method.
Specifies a file dialog box.
true if the dialog box was successfully run; otherwise, false.
The window handle of the owner window for the common dialog box.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(false)
System.Boolean
To be added.
To be added.
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.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(false)
System.Boolean
To be added.
To be added.
Gets or sets a value indicating whether the dialog box contains an Apply button.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(false)
System.Boolean
To be added.
To be added.
Gets or sets a value indicating whether the dialog box displays the color choice.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(true)
System.Boolean
To be added.
To be added.
Gets or sets a value indicating whether the dialog box contains controls that allow the user to specify strikethrough, underline, and text color options.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(false)
System.Boolean
To be added.
To be added.
Gets or sets a value indicating whether the dialog box displays a Help button.
1.0.5000.0
2.0.0.0
Method
System.String
To be added.
Retrieves a string that includes the name of the current font selected in the dialog box.
A string that includes the name of the currently selected font.
1.0.5000.0
2.0.0.0