LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Print(RasterImage,Int32,AnnContainer,PrintPageEventArgs) Method
See Also 
Leadtools.Annotations Namespace > AnnPrinter Class > Print Method : Print(RasterImage,Int32,AnnContainer,PrintPageEventArgs) Method



image
The Leadtools.RasterImage to be printed.
page
The page number to be printed.
container
The AnnContainer containing the annotation objects to be printed.
e
An System.Drawing.Printing.PrintPageEventArgs object that contains print data.

The Print(RasterImage,Int32,AnnContainer,PrintPageEventArgs) Method is available in LEADTOOLS Document and Medical Imaging toolkits.

image
The Leadtools.RasterImage to be printed.
page
The page number to be printed.
container
The AnnContainer containing the annotation objects to be printed.
e
An System.Drawing.Printing.PrintPageEventArgs object that contains print data.
Prints the specified Leadtools.RasterImage and AnnContainer.

Syntax

Visual Basic (Declaration) 
Overloads Public Overridable Sub Print( _
   ByVal image As RasterImage, _
   ByVal page As Integer, _
   ByVal container As AnnContainer, _
   ByVal e As PrintPageEventArgs _
) 
Visual Basic (Usage)Copy Code
Dim instance As AnnPrinter
Dim image As RasterImage
Dim page As Integer
Dim container As AnnContainer
Dim e As PrintPageEventArgs
 
instance.Print(image, page, container, e)
C# 
public virtual void Print( 
   RasterImage image,
   int page,
   AnnContainer container,
   PrintPageEventArgs e
)
C++/CLI 
public:
virtual void Print( 
   RasterImage^ image,
   int page,
   AnnContainer^ container,
   PrintPageEventArgs^ e
) 

Parameters

image
The Leadtools.RasterImage to be printed.
page
The page number to be printed.
container
The AnnContainer containing the annotation objects to be printed.
e
An System.Drawing.Printing.PrintPageEventArgs object that contains print data.

Example

For an example, refer to AnnPrinter.

Remarks

The page parameter is 1-based.

You usually call this method from the System.Drawing.Printing.PrintDocument.PrintPage event handler of a System.Drawing.Printing.PrintDocument object. You must pass the System.Drawing.Printing.PrintPageEventArgs obtained in the System.Drawing.Printing.PrintDocument.PrintPage event handler to this method as the e parameter.

You can pass null (Nothing) for either image or container to not print the specified object.

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

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features