FontDialog.ShowApply Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

member ShowApply : bool with get, set

Property Value

Type: System.Boolean

true if the dialog box contains an Apply button; otherwise, false. The default value is false.

The following code example shows how to apply the selections in a FontDialog to the text in a RichTextBox. In the event handler that displays the dialog box, the example initializes the ShowApply property to true and then displays the FontDialog. In the Apply event handler, the Font property is assigned to the Control.Font property.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top