iOS Guides | Samples

CoreGraphics.CGPath Class

A drawing path is made up of lines, arcs, beziers that can be used to paint.

See Also: CGPath

Syntax

public class CGPath : INativeObject, IDisposable

Related content

Requirements

Namespace: CoreGraphics
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of CoreGraphics.CGPath are listed below.

See Also: Object

Public Constructors

Creates an empty CGPath.
Creates an new CGPath from the provided basePath.
Creates an new CGPath from the provided reference path by applying the provided transform

Public Properties

[read-only]
BoundingBoxCGRect.
[read-only]
CurrentPointCGPoint.
[read-only]
HandleIntPtr. Handle (pointer) to the unmanaged object representation.
[read-only]
IsEmptyBoolean.
[read-only]
PathBoundingBoxCGRect.

Public Methods

AddArc(Boolean, nfloat, nfloat, nfloat, nfloat, nfloat)
Adds the described arc to the end of the path.
AddArc(CGAffineTransform, Boolean, nfloat, nfloat, nfloat, nfloat, nfloat)
AddArcToPoint(nfloat, nfloat, nfloat, nfloat, nfloat)
AddArcToPoint(CGAffineTransform, nfloat, nfloat, nfloat, nfloat, nfloat)
AddCurveToPoint(CGPoint, CGPoint, CGPoint)
AddCurveToPoint(CGAffineTransform, CGPoint, CGPoint, CGPoint)
AddCurveToPoint(nfloat, nfloat, nfloat, nfloat, nfloat, nfloat)
AddCurveToPoint(CGAffineTransform, nfloat, nfloat, nfloat, nfloat, nfloat, nfloat)
AddEllipseInRect(CGRect)
AddEllipseInRect(CGAffineTransform, CGRect)
AddLines(CGPoint[])
AddLines(CGAffineTransform, CGPoint[])
AddLines(CGPoint[], Int32)
AddLines(CGAffineTransform, CGPoint[], Int32)
AddLineToPoint(CGPoint)
AddLineToPoint(CGAffineTransform, CGPoint)
AddLineToPoint(nfloat, nfloat)
AddLineToPoint(CGAffineTransform, nfloat, nfloat)
AddPath(CGPath)
AddPath(CGAffineTransform, CGPath)
AddQuadCurveToPoint(nfloat, nfloat, nfloat, nfloat)
AddQuadCurveToPoint(CGAffineTransform, nfloat, nfloat, nfloat, nfloat)
AddRect(CGRect)
AddRect(CGAffineTransform, CGRect)
AddRects(CGRect[])
AddRects(CGAffineTransform, CGRect[])
AddRects(Int32, CGRect[])
AddRects(CGAffineTransform, Int32, CGRect[])
AddRelativeArc(nfloat, nfloat, nfloat, nfloat, nfloat)
AddRelativeArc(CGAffineTransform, nfloat, nfloat, nfloat, nfloat, nfloat)
AddRoundedRect(CGRect, nfloat, nfloat)
AddRoundedRect(CGAffineTransform, CGRect, nfloat, nfloat)
Apply(CGPath+ApplierFunction)
CloseSubpath()
ContainsPoint(Boolean, CGPoint) : Boolean
ContainsPoint(CGAffineTransform, Boolean, CGPoint) : Boolean
Copy() : CGPath
CopyByDashingPath(nfloat[]) : CGPath
CopyByDashingPath(CGAffineTransform, nfloat[]) : CGPath
CopyByDashingPath(nfloat[], nfloat) : CGPath
CopyByDashingPath(CGAffineTransform, nfloat[], nfloat) : CGPath
CopyByStrokingPath(CGLineCap, CGLineJoin, nfloat, nfloat) : CGPath
CopyByStrokingPath(CGAffineTransform, CGLineCap, CGLineJoin, nfloat, nfloat) : CGPath
CopyByTransformingPath(CGAffineTransform) : CGPath
Dispose()
Releases the resources used by the CGPath object.
static
EllipseFromRect(CGRect) : CGPath
static
EllipseFromRect(CGAffineTransform, CGRect) : CGPath
override
Equals(Object) : Boolean
Finalize()
Finalizer for the CGPath object
static
FromRect(CGRect) : CGPath
static
FromRect(CGAffineTransform, CGRect) : CGPath
static
FromRoundedRect(CGRect, nfloat, nfloat) : CGPath
static
FromRoundedRect(CGAffineTransform, CGRect, nfloat, nfloat) : CGPath
override
GetHashCode() : Int32
IsRect(out CGRect) : Boolean
MoveToPoint(CGPoint)
MoveToPoint(CGAffineTransform, CGPoint)
MoveToPoint(nfloat, nfloat)
MoveToPoint(CGAffineTransform, nfloat, nfloat)

Protected Methods

Dispose(Boolean)
Releases the resources used by the CGPath object.

Public Operators