<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBezierPath/ElementType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSBezierPathElement"
  },
  "title" : "NSBezierPath.ElementType"
}
-->

# NSBezierPath.ElementType

Constants that specify basic path element commands.

```
enum ElementType
```

## Overview

These commands are enough to define all of the possible path shapes. Each command has one or more points that contain information needed to position the path element. Most path elements use the current drawing point as the starting point for drawing. For more information, see [`NSBezierPath`](/documentation/AppKit/NSBezierPath).

## Topics

### Constants

[`NSBezierPathElementMoveTo`](/documentation/AppKit/NSBezierPath/ElementType/moveTo)

Moves the path object’s current drawing point to the specified point.

[`NSBezierPathElementLineTo`](/documentation/AppKit/NSBezierPath/ElementType/lineTo)

Creates a straight line from the current drawing point to the specified point.

[`NSBezierPathElementClosePath`](/documentation/AppKit/NSBezierPath/ElementType/closePath)

Marks the end of the current subpath at the specified point.

[`NSBezierPathElementCurveTo`](/documentation/AppKit/NSBezierPath/ElementType/curveTo)

Creates a curved line segment from the current point to the specified endpoint using two control points to define the curve.

[`NSBezierPathElementCubicCurveTo`](/documentation/AppKit/NSBezierPath/ElementType/cubicCurveTo)

[`NSBezierPathElementQuadraticCurveTo`](/documentation/AppKit/NSBezierPath/ElementType/quadraticCurveTo)

### Deprecated Constants

[`NSMoveToBezierPathElement`](/documentation/AppKit/NSMoveToBezierPathElement)

Moves the path object’s current drawing point to the specified point.

[`NSLineToBezierPathElement`](/documentation/AppKit/NSLineToBezierPathElement)

Creates a straight line from the current drawing point to the specified point.

[`NSCurveToBezierPathElement`](/documentation/AppKit/NSCurveToBezierPathElement)

Creates a curved line segment from the current point to the specified endpoint using two control points to define the curve.

[`NSClosePathBezierPathElement`](/documentation/AppKit/NSClosePathBezierPathElement)

Marks the end of the current subpath at the specified point.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

---

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)