[]
        
(Showing Draft Content)

FarPoint.Win.Spread.FpSpread.OwnerPrintDraw

OwnerPrintDraw Method

OwnerPrintDraw(Graphics, Rectangle, int, int)

Prints the specified page of the specified sheet to a specified graphics interface with the specified size.

Declaration
public void OwnerPrintDraw(Graphics g, Rectangle rect, int sheet, int page)
Public Sub OwnerPrintDraw(g As Graphics, rect As Rectangle, sheet As Integer, page As Integer)
Parameters
Type Name Description
Graphics g

Graphics device that handles printing

Rectangle rect

Location and size of a rectangular region

int sheet

Sheet from which to print

int page

Specific page of the sheet to print

Exceptions
Type Condition
ArgumentOutOfRangeException

Specified sheet index is out of range; must be between zero and the total number of sheets

ArgumentOutOfRangeException

Specified page index is out of range; must be greater than one

OwnerPrintDraw(Graphics, Rectangle, int, int, OwnerPrintInfo)

Prints the specified page of the specified sheet to a specified graphics interface with the specified size.

Declaration
public void OwnerPrintDraw(Graphics g, Rectangle rect, int sheet, int page, OwnerPrintInfo info)
Public Sub OwnerPrintDraw(g As Graphics, rect As Rectangle, sheet As Integer, page As Integer, info As OwnerPrintInfo)
Parameters
Type Name Description
Graphics g

Graphics device that handles printing

Rectangle rect

Location and size of a rectangular region

int sheet

Sheet from which to print

int page

Specific page of the sheet to print

OwnerPrintInfo info
Exceptions
Type Condition
ArgumentOutOfRangeException

Specified sheet index is out of range; must be between zero and the total number of sheets

ArgumentOutOfRangeException

Specified page index is out of range; must be greater than one