---
title: "insertNewLine(configuration:from:to:startMarker:endMarker:)"
framework: paperkit
role: symbol
role_heading: Instance Method
path: "paperkit/papermarkup/insertnewline(configuration:from:to:startmarker:endmarker:)"
---

# insertNewLine(configuration:from:to:startMarker:endMarker:)

Add a line element on top of the paper.

## Declaration

```swift
mutating func insertNewLine(configuration: ShapeConfiguration, from start: CGPoint, to end: CGPoint, startMarker lineStartMarker: Bool = false, endMarker lineEndMarker: Bool = false)
```

## Parameters

- `configuration`: The configuration of the line to insert.
- `start`: The start position of the line.
- `end`: The end position of the line.
- `lineStartMarker`: True if the start of the line has a marker / arrow.
- `lineEndMarker`: True if the end of the line has a marker / arrow.

## See Also

### Inserting elements

- [insertNewShape(configuration:frame:rotation:)](paperkit/papermarkup/insertnewshape(configuration:frame:rotation:).md)
- [insertNewImage(_:frame:rotation:)](paperkit/papermarkup/insertnewimage(_:frame:rotation:).md)
- [insertNewTextbox(attributedText:frame:rotation:)](paperkit/papermarkup/insertnewtextbox(attributedtext:frame:rotation:)-53rs.md)
- [insertNewTextbox(attributedText:frame:rotation:)](paperkit/papermarkup/insertnewtextbox(attributedtext:frame:rotation:)-67igk.md)
