---
title: CGPathElementType.addLineToPoint
framework: coregraphics
role: symbol
role_heading: Case
path: coregraphics/cgpathelementtype/addlinetopoint
---

# CGPathElementType.addLineToPoint

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

## Declaration

```swift
case addLineToPoint
```

## Discussion

Discussion The element holds a single point for the destination. See the function CGPathAddLineToPoint.

## See Also

### Constants

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