Spread Windows Forms 15.0
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / FpSpread Class / OwnerPrintDraw Method / OwnerPrintDraw(Graphics,Rectangle,Int32,Int32,OwnerPrintInfo) Method
Graphics device that handles printing
Location and size of a rectangular region
Sheet from which to print
Specific page of the sheet to print


In This Topic
    OwnerPrintDraw(Graphics,Rectangle,Int32,Int32,OwnerPrintInfo) Method
    In This Topic
    Prints the specified page of the specified sheet to a specified graphics interface with the specified size.
    Syntax
    'Declaration
     
    
    Public Overloads Sub OwnerPrintDraw( _
       ByVal g As Graphics, _
       ByVal rect As Rectangle, _
       ByVal sheet As Integer, _
       ByVal page As Integer, _
       ByVal info As OwnerPrintInfo _
    ) 
    'Usage
     
    
    Dim instance As FpSpread
    Dim g As Graphics
    Dim rect As Rectangle
    Dim sheet As Integer
    Dim page As Integer
    Dim info As OwnerPrintInfo
     
    instance.OwnerPrintDraw(g, rect, sheet, page, info)
    public void OwnerPrintDraw( 
       Graphics g,
       Rectangle rect,
       int sheet,
       int page,
       OwnerPrintInfo info
    )

    Parameters

    g
    Graphics device that handles printing
    rect
    Location and size of a rectangular region
    sheet
    Sheet from which to print
    page
    Specific page of the sheet to print
    info
    Exceptions
    ExceptionDescription
    Specified sheet index is out of range; must be between zero and the total number of sheets
    Specified page index is out of range; must be greater than one
    See Also