iOS Guides | Samples

MonoTouch.UIKit.UIBezierPath Class

A UIControl that displays a reusable bezier path. Supports hit detection as well as Stroke and Fill operations on a graphics context. This is a high-level front end to CoreGraphics's CGContext API.

See Also: UIBezierPath


[MonoTouch.Foundation.Register("UIBezierPath", true)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 3, 2, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
public class UIBezierPath : NSObject, INSCoding, INSCopying, IDisposable


The members of this class can be used from a background thread.

Related content


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

The members of MonoTouch.UIKit.UIBezierPath are listed below.

See Also: NSObject

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

BoundsRectangleF. The bounding RectangleF of the path. Read-only.
CGPathCGPath. The Core Graphics version of the path.
ClassHandleIntPtr. The handle for this class.
CurrentPointPointF. The current point in the path. Read-only.
EmptyBoolean. Whether the path has any valid elements. Read-only.
FlatnessSingle. Determines the rendering accuracy for curved segments of the path.
LineCapStyleCGLineCap. The shape of the path's end points.
LineJoinStyleCGLineJoin. The shape of the joints between connected segments of the path.
LineWidthSingle. The width of the path. A value of 0 indicates the thinnest line renderable on the device.
MiterLimitSingle. A value that allows control of spikes when path segments are joined by miters.
UsesEvenOddFillRuleBoolean. If true, the path is filled using the even-odd rule. If false, the non-zero rule is used.

Public Methods

AddArc(PointF, Single, Single, Single, Boolean)
Appends an arc to this UIBezierPath.
Intersects this UIBezierPath with the clipping path of the current graphics context.
AddCurveToPoint(PointF, PointF, PointF)
Appends a cubic Bezier curve to this UIBezierPath.
Appends a straight line to this UIBezierPath.
AddQuadCurveToPoint(PointF, PointF)
Appends a quadratic Bezier curve to this UIBezierPath.
Appends a path to this UIBezierPath.
Applies an affine transform to this UIBezierPath.
BezierPathByReversingPath() : UIBezierPath
Creates a new UIBezierPath whose path is the reverse of this UIBezierPath.
Closes the most recently added subpath.
ContainsPoint(PointF) : Boolean
Whether the area enclosed by this UIBezierPath includes the specified PointF.
Copy(NSZone) : NSObject
Performs a copy of the underlying Objective-C object.
Create() : UIBezierPath
Creates a new UIBezierPath object.
Fills this UIBezierPath's enclosed region using the current drawing properties.
Fill(CGBlendMode, Single)
Fills the region enclosed by the path.
FromArc(PointF, Single, Single, Single, Boolean) : UIBezierPath
Creates a new UIBezierPath, initialized with the specified arc.
FromOval(RectangleF) : UIBezierPath
Creates a new UIBezierPath, initialized with the specified oval.
FromPath(CGPath) : UIBezierPath
Creates a new UIBezierBath, initialize with the specified CGPath.
FromRect(RectangleF) : UIBezierPath
Creates a new UIBezierPath, initialized with the specified rectangle.
FromRoundedRect(RectangleF, Single) : UIBezierPath
Factory method to create a UIBezierPath from a rounded rectangle.
FromRoundedRect(RectangleF, UIRectCorner, SizeF) : UIBezierPath
Creates a new UIBezierPath, initialized with the specified rounded rectangle.
GetLineDash(out Single[], out Single)
Stores the stroking pattern and phase in the provided out parameters.
Moves the CurrentPoint to the specified location.
Removes all points from this UIBezierPath, effectively resetting it.
SetLineDash(Single[], Single)
Sets line stroking pattern for the path.
SetLineDash(Single[], Int32, Int32, Single)
Sets the dash pattern for the line.
Renders a line along the path using the current drawing properties.
Stroke(CGBlendMode, Single)
Draws the path.