PrintDialog::ShowDialog Method ()

 
System_CAPS_noteNote

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

Invokes the PrintDialog as a modal dialog box.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
[SecurityCriticalAttribute]
Nullable<bool> ShowDialog()

Return Value

Type: System::Nullable<Boolean>

true if a user clicks Print; false if a user clicks Cancel; or null if a user closes the dialog box without clicking Print or Cancel.

The following example shows how to use the ShowDialog method in code.

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

.NET Framework
Available since 3.0
Return to top
Show: