LEADTOOLS Windows Forms (Leadtools.WinForms assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
PrintDocument Property
See Also 
Leadtools.WinForms Namespace > RasterImagePrinter Class : PrintDocument Property



Gets or sets the System.Drawing.Printing.PrintDocument object associated with this print job

Syntax

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.

Example

For an example, refer to RasterImagePrinter and ImageRectangle.

Remarks

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also