MonobjcMonobjc Documented Class Library
RectForPage Method (pageNumber)
NamespacesMonobjc.AppKitNSViewRectForPage(NSInteger)

Implemented by subclasses to determine the portion of the receiver to be printed for the page number page.

Original signature is '- (NSRect)rectForPage:(NSInteger)pageNumber'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSRect RectForPage(
	NSInteger pageNumber
)
Public Overridable Function RectForPage ( _
	pageNumber As NSInteger _
) As NSRect
public:
virtual NSRect RectForPage(
	NSInteger pageNumber
)
Parameters
pageNumber (NSInteger)
An integer indicating a page number. Page numbers are one-based—that is pages run from one to N.
Return Value
A rectangle defining the region of the receiver to be printed for pageNumber. This method returns NSZeroRect if pageNumber is outside the receiver’s bounds.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)