<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGPathElementType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@E@CGPathElementType"
  },
  "title" : "CGPathElementType"
}
-->

# CGPathElementType

The type of element found in a path.

```
enum CGPathElementType
```

## Overview

For more information about paths, see [`CGPath`](/documentation/CoreGraphics/CGPath).

## Topics

### Constants

[`CGPathElementType.moveToPoint`](/documentation/CoreGraphics/CGPathElementType/moveToPoint)

The path element that starts a new subpath.

[`CGPathElementType.addLineToPoint`](/documentation/CoreGraphics/CGPathElementType/addLineToPoint)

The path element that adds a line from the current point to a new point.

[`CGPathElementType.addQuadCurveToPoint`](/documentation/CoreGraphics/CGPathElementType/addQuadCurveToPoint)

The path element that adds a quadratic curve from the current point to the specified point.

[`CGPathElementType.addCurveToPoint`](/documentation/CoreGraphics/CGPathElementType/addCurveToPoint)

The path element that adds a cubic curve from the current point to the specified point.

[`CGPathElementType.closeSubpath`](/documentation/CoreGraphics/CGPathElementType/closeSubpath)

The path element that closes and completes a subpath. The element does not contain any points. See the function [`closeSubpath()`](/documentation/CoreGraphics/CGMutablePath/closeSubpath()).



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)