Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
PrintVisual Method
Collapse the table of content
Expand the table of content

PrintDialog.PrintVisual Method

Prints a visual (non-text) object, which is derived from the Visual class, to the PrintQueue that is currently selected.

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

public void PrintVisual(
	Visual visual,
	string description
)

Parameters

visual
Type: System.Windows.Media.Visual

The Visual to print.

description
Type: System.String

A description of the job that is to be printed. This text appears in the user interface (UI) of the printer.

ExceptionCondition
ArgumentNullException

visual is null.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft