iOS Guides | Samples

MonoTouch.UIKit.UIPrintFormatter Class

An abstract base class that can be extended to lay out custom printable content.

See Also: UIPrintFormatter


[MonoTouch.Foundation.Register("UIPrintFormatter", true)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 4, 2, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.TvOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public class UIPrintFormatter : NSObject, INSCopying, IDisposable

Related content


Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions:

The members of MonoTouch.UIKit.UIPrintFormatter are listed below.

See Also: NSObject

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

AttributedTextNSAttributedString. The attributed text.
ClassHandleIntPtr. The handle for this class.
ContentInsetsUIEdgeInsets. The distance the edges of the content should be inset from the printing rectangle.
MaximumContentHeightSingle. The maximum height of the content area.
MaximumContentWidthSingle. The maximum width of the content area.
PageCountInt32. The number of pages to be printed. Read-only.
PerPageContentInsetsUIEdgeInsets. Gets or sets the minimum margins that will apply to every printed page.
PrintPageRendererUIPrintPageRenderer. The UIPrintPageRenderer associated with this UIPrintFormatter.
StartPageInt32. The index of the first page that this UIPrintFormatter will lay out.

Public Methods

Copy(NSZone) : NSObject
Performs a copy of the underlying Objective-C object.
DrawRect(RectangleF, Int32)
Draws that portion of this UIPrintFormatter's content in the area specified on the specified page.
RectangleForPage(Int32) : RectangleF
The RectangleF of the area enclosing the specified page of content.
Removes this UIPrintFormatter from the specified UIPrintPageRenderer.

Protected Methods

Releases the resources used by the UIPrintFormatter object.