---
title: PDFAnnotationLine
framework: pdfkit
role: symbol
role_heading: Class
path: pdfkit/pdfannotationline
---

# PDFAnnotationLine

A PDFAnnotationLine object displays a single line on a page.

## Declaration

```swift
class PDFAnnotationLine
```

## Overview

Overview The lineWidth and style properties of the annotation’s associated PDFBorder object determines the stroke thickness and style. The color property of the PDFAnnotation class determines the stroke color.

## Topics

### Specifying the Starting and Ending Points

- [startPoint()](pdfkit/pdfannotationline/startpoint().md)
- [setStart(_:)](pdfkit/pdfannotationline/setstart(_:)-86is0.md)
- [endPoint()](pdfkit/pdfannotationline/endpoint().md)
- [setEnd(_:)](pdfkit/pdfannotationline/setend(_:)-2qn58.md)

### Specifying the Line Ending Styles

- [startLineStyle()](pdfkit/pdfannotationline/startlinestyle().md)
- [setStart(_:)](pdfkit/pdfannotationline/setstart(_:)-57pe0.md)
- [endLineStyle()](pdfkit/pdfannotationline/endlinestyle().md)
- [setEnd(_:)](pdfkit/pdfannotationline/setend(_:)-9cp0t.md)

### Specifying the Color of Line-end Ornaments

- [interiorColor()](pdfkit/pdfannotationline/interiorcolor().md)
- [setInteriorColor(_:)](pdfkit/pdfannotationline/setinteriorcolor(_:).md)

### Constants

- [PDFLineStyle](pdfkit/pdflinestyle.md)

## Relationships

### Inherits From

- [PDFAnnotation](pdfkit/pdfannotation.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Deprecated Annotation Types

- [PDFAnnotationButtonWidget](pdfkit/pdfannotationbuttonwidget.md)
- [PDFAnnotationChoiceWidget](pdfkit/pdfannotationchoicewidget.md)
- [PDFAnnotationCircle](pdfkit/pdfannotationcircle.md)
- [PDFAnnotationFreeText](pdfkit/pdfannotationfreetext.md)
- [PDFAnnotationInk](pdfkit/pdfannotationink.md)
- [PDFAnnotationLink](pdfkit/pdfannotationlink.md)
- [PDFAnnotationMarkup](pdfkit/pdfannotationmarkup.md)
- [PDFAnnotationPopup](pdfkit/pdfannotationpopup.md)
- [PDFAnnotationSquare](pdfkit/pdfannotationsquare.md)
- [PDFAnnotationStamp](pdfkit/pdfannotationstamp.md)
- [PDFAnnotationText](pdfkit/pdfannotationtext.md)
- [PDFAnnotationTextWidget](pdfkit/pdfannotationtextwidget.md)
