Leadtools.Annotations Namespace > AnnPrinter Class > Print Method : Print(RasterImage,Int32,AnnContainer,PrintPageEventArgs) Method |
public virtual void Print( RasterImage image, int page, AnnContainer container, PrintPageEventArgs e )
'Declaration Public Overloads Overridable Sub Print( _ ByVal image As RasterImage, _ ByVal page As Integer, _ ByVal container As AnnContainer, _ ByVal e As PrintPageEventArgs _ )
'Usage 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)
public: virtual void Print( RasterImage^ image, int page, AnnContainer^ container, PrintPageEventArgs^ e )
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.