Düzenle

Aracılığıyla paylaş


UIView.ClearsContextBeforeDrawing Property

Definition

Specifies that the drawing buffer be erased prior to calling DrawRect(CGRect, UIViewPrintFormatter)

public virtual bool ClearsContextBeforeDrawing { [Foundation.Export("clearsContextBeforeDrawing")] get; [Foundation.Export("setClearsContextBeforeDrawing:")] set; }
member this.ClearsContextBeforeDrawing : bool with get, set

Property Value

The default value is true.

Attributes

Remarks

If this value is true, the receiver's Bounds are erased and set to transparent black before the receiver's DrawRect(CGRect, UIViewPrintFormatter) method is called.

If the application developer has written a highly optimized DrawRect(CGRect, UIViewPrintFormatter), this property can be set to false which may lead to a performance improvement.

Applies to