Visual Basic (Declaration) | |
---|---|
Public Property PrintDocument As PrintDocument |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As RasterImagePrinter Dim value As PrintDocument instance.PrintDocument = value value = instance.PrintDocument |
C# | |
---|---|
public PrintDocument PrintDocument {get; set;} |
C++/CLI | |
---|---|
public: property PrintDocument^ PrintDocument { PrintDocument^ get(); void set ( PrintDocument^ value); } |
Property Value
The System.Drawing.Printing.PrintDocument object associated with this print job.For an example, refer to RasterImagePrinter and ImageRectangle.
You must set the PrintDocument property to the System.Drawing.Printing.PrintDocument object you are using for this print job. The RasterImagePrinter class requires this object to determine whether the printing operation is inside in preview mode (for example, using the print view dialog control) and calculates the real page margins accordingly.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7