MonoTouch.UIKit.UIView.ClearsContextBeforeDrawing Property
Specifies that the drawing buffer be erased prior to calling UIView.DrawRect

Syntax

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

Value

The default value is true.

Remarks

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

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

Requirements

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