MonobjcMonobjc Documented Class Library
PageSizeForPaper Method (paperName)
NamespacesMonobjc.AppKitNSPrinterPageSizeForPaper(NSString)

Returns the size of the page for the specified paper type.

Original signature is '- (NSSize)pageSizeForPaper:(NSString *)paperName'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSSize PageSizeForPaper(
	NSString paperName
)
Public Overridable Function PageSizeForPaper ( _
	paperName As NSString _
) As NSSize
public:
virtual NSSize PageSizeForPaper(
	NSString^ paperName
)
Parameters
paperName (NSString)
Possible values are printer-dependent and are contained in the printer's PPD file. Typical values are "Letter" and "Legal".
Return Value
The size of the page, measured in points in the user coordinate space. The returned size is zero if the specified paper name is not recognized or its entry in the PPD file cannot be parsed.
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)