Export (0) Print
Expand All

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
)
public void PrintVisual (
	Visual visual, 
	String description
)
public function PrintVisual (
	visual : Visual, 
	description : String
)
You cannot use methods in XAML.

Parameters

visual

The Visual to print.

description

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

Exception typeCondition

ArgumentNullException

visual is a null reference (Nothing in Visual Basic).

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft