CGPathElement CGPathElement Struct

Definition

An individual element on a CGPath.

public struct CGPathElement
type CGPathElement = struct
Inheritance
CGPathElementCGPathElement

Remarks

Depending on the value of Type, you will use the values in Point1, Point2 and Point3.

CGPathElementTypeDescription
CloseSubpathThe end of a subpath.
MoveToPoint, AddLineToPointUse the Point1 value.
AddQuadCurveToPointUse the Point1 and Point2 values.
AddCurveToPointUse the Point1, Point2 and Point3 values.

Constructors

CGPathElement(Int32) CGPathElement(Int32)

Fields

Point1 Point1

First point.

Point2 Point2

Second point.

Point3 Point3

Third point.

Type Type

Determines the type of path element.

Applies to