---
title: CGPathElementType
framework: coregraphics
role: symbol
role_heading: Enumeration
path: coregraphics/cgpathelementtype
---

# CGPathElementType

The type of element found in a path.

## Declaration

```swift
enum CGPathElementType
```

## Overview

Overview For more information about paths, see CGPath.

## Topics

### Constants

- [CGPathElementType.moveToPoint](coregraphics/cgpathelementtype/movetopoint.md)
- [CGPathElementType.addLineToPoint](coregraphics/cgpathelementtype/addlinetopoint.md)
- [CGPathElementType.addQuadCurveToPoint](coregraphics/cgpathelementtype/addquadcurvetopoint.md)
- [CGPathElementType.addCurveToPoint](coregraphics/cgpathelementtype/addcurvetopoint.md)
- [CGPathElementType.closeSubpath](coregraphics/cgpathelementtype/closesubpath.md)

### Initializers

- [init(rawValue:)](coregraphics/cgpathelementtype/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Applying a Function to the Elements of a Path

- [apply(info:function:)](coregraphics/cgpath/apply(info:function:).md)
- [CGPathApplierFunction](coregraphics/cgpathapplierfunction.md)
- [CGPathElement](coregraphics/cgpathelement.md)
