UIView.ClearsContextBeforeDrawing Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.