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

Syntax

[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

Remarks

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

Related content

Requirements

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

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

[read-only]
BoundsRectangleF. The bounding RectangleF of the path. Read-only.
CGPathCGPath. The Core Graphics version of the path.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
CurrentPointPointF. The current point in the path. Read-only.
[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.
AddClip()
Intersects this UIBezierPath with the clipping path of the current graphics context.
AddCurveToPoint(PointF, PointF, PointF)
Appends a cubic Bezier curve to this UIBezierPath.
AddLineTo(PointF)
Appends a straight line to this UIBezierPath.
AddQuadCurveToPoint(PointF, PointF)
Appends a quadratic Bezier curve to this UIBezierPath.
AppendPath(UIBezierPath)
Appends a path to this UIBezierPath.
ApplyTransform(CGAffineTransform)
Applies an affine transform to this UIBezierPath.
BezierPathByReversingPath() : UIBezierPath
Creates a new UIBezierPath whose path is the reverse of this UIBezierPath.
ClosePath()
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.
static
Create() : UIBezierPath
Creates a new UIBezierPath object.
Fill()
Fills this UIBezierPath's enclosed region using the current drawing properties.
Fill(CGBlendMode, Single)
Fills the region enclosed by the path.
static
FromArc(PointF, Single, Single, Single, Boolean) : UIBezierPath
Creates a new UIBezierPath, initialized with the specified arc.
static
FromOval(RectangleF) : UIBezierPath
Creates a new UIBezierPath, initialized with the specified oval.
static
FromPath(CGPath) : UIBezierPath
Creates a new UIBezierBath, initialize with the specified CGPath.
static
FromRect(RectangleF) : UIBezierPath
Creates a new UIBezierPath, initialized with the specified rectangle.
static
FromRoundedRect(RectangleF, Single) : UIBezierPath
Factory method to create a UIBezierPath from a rounded rectangle.
static
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.
MoveTo(PointF)
Moves the CurrentPoint to the specified location.
RemoveAllPoints()
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.
Stroke()
Renders a line along the path using the current drawing properties.
Stroke(CGBlendMode, Single)
Draws the path.