UIKit.UIView.DrawRect Method
Draws a region for printing.

Syntax

[Foundation.Export("drawRect:forViewPrintFormatter:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_4_2)]
public virtual void DrawRect (UIViewPrintFormatter formatter, CoreGraphics.CGRect area)

Parameters

area
The region to be printed.
formatter
The configured UIViewPrintFormatter, which is obtained by accessing the UIView.PrintFormatter property.

Remarks

UIViews can be printed. The default behavior is for the contents of the UIView as rendered by the UIView.Draw(System.Drawing.CoreGraphics.CGRect) method to be printed.

You should override the UIView.DrawRect(System.Drawing.CoreGraphics.CGRect, UIKit.UIView.UIViewPrintFormatter) method if you want to provide a different implementation while printing.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0