---
title: NSBezierPath.ElementType.lineTo
framework: appkit
role: symbol
role_heading: Case
path: appkit/nsbezierpath/elementtype/lineto
---

# NSBezierPath.ElementType.lineTo

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

## Declaration

```swift
case lineTo
```

## See Also

### Constants

- [NSBezierPath.ElementType.moveTo](appkit/nsbezierpath/elementtype/moveto.md)
- [NSBezierPath.ElementType.closePath](appkit/nsbezierpath/elementtype/closepath.md)
- [curveTo](appkit/nsbezierpath/elementtype/curveto.md)
- [NSBezierPath.ElementType.cubicCurveTo](appkit/nsbezierpath/elementtype/cubiccurveto.md)
- [NSBezierPath.ElementType.quadraticCurveTo](appkit/nsbezierpath/elementtype/quadraticcurveto.md)
