Assembly: PresentationFramework (in PresentationFramework.dll)
Gets or sets a value that indicates whether the option to print the current page is enabled.
Gets or sets the highest page number that is allowed in page ranges.
Gets or sets the lowest page number that is allowed in page ranges.
Gets or sets the PageRangeSelection for this instance of .
Gets the height of the printable area of the page.
Gets the width of the printable area of the page.
Gets or sets a PrintQueue that represents the printer that is selected.
Gets or sets the PrintTicket that is used by the when the user clicks Print for the current print job.
Gets or sets a value that indicates whether the option to print the selected pages is enabled.
Gets or sets a value that indicates whether users of the Print dialog box have the option to specify ranges of pages to print.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Invokes theas a modal dialog box.
Returns a string that represents the current object.(Inherited from Object.)
A user can use the Print dialog box to select a printer, configure it, and perform a print job.
Strictly speaking, you can use the PrintDocument method without ever opening the dialog. In that sense, the control can be used as an unseen printing component. But for performance reasons, it would be better to use either the AddJob method or one of the many Write and WriteAsync methods of the XpsDocumentWriter. For more about this, see How to: Programmatically Print XPS Files.
Do not confuse this class, System.Windows.Forms.PrintDialog. The latter is used with Windows Forms applications. is used with Windows Presentation Foundation (WPF) applications., with
The following example shows how to create an instance of and display a simpleby using Extensible Application Markup Language (XAML) markup and code.
Available since 3.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.