Edit

Share via


UIView.DrawRect(CGRect, UIViewPrintFormatter) Method

Definition

Developers should override this method if their appr draws the UIView contents.

[Foundation.Export("drawRect:forViewPrintFormatter:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DrawRect (CoreGraphics.CGRect area, UIKit.UIViewPrintFormatter formatter);
abstract member DrawRect : CoreGraphics.CGRect * UIKit.UIViewPrintFormatter -> unit
override this.DrawRect : CoreGraphics.CGRect * UIKit.UIViewPrintFormatter -> unit

Parameters

area
CGRect

The area that should be drawn.

Attributes

Remarks

Developers directly over-riding UIView need not call the base-class implementation.

Applies to