Nevron .NET Vision
Nevron.Diagram.Extensions Namespace / NPrintDocument Class / CreatePrintCanvas Method
graphics
bounds of the canvas (page bounds)
bounds of the window (margins bounds)


In This Topic
    CreatePrintCanvas Method
    In This Topic
    Called by the OnPrintPage method to create a canvas, which can be used to print the current page on the printer graphics
    Syntax
    'Declaration
     
    
    Protected Overridable Function CreatePrintCanvas( _
       ByVal grx As System.Drawing.Graphics, _
       ByVal canvasBounds As NRectangleF, _
       ByVal windowBounds As NRectangleF _
    ) As NCanvas
    'Usage
     
    
    Dim instance As NPrintDocument
    Dim grx As System.Drawing.Graphics
    Dim canvasBounds As NRectangleF
    Dim windowBounds As NRectangleF
    Dim value As NCanvas
     
    value = instance.CreatePrintCanvas(grx, canvasBounds, windowBounds)
    protected virtual NCanvas CreatePrintCanvas( 
       System.Drawing.Graphics grx,
       NRectangleF canvasBounds,
       NRectangleF windowBounds
    )

    Parameters

    grx
    graphics
    canvasBounds
    bounds of the canvas (page bounds)
    windowBounds
    bounds of the window (margins bounds)

    Return Value

    canvas used for the rendering of the current page
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also