<!--
{
  "availability" : [
    "macOS: 10.4.0 - 10.12.0"
  ],
  "documentType" : "symbol",
  "framework" : "PDFKit",
  "identifier" : "/documentation/PDFKit/PDFAnnotationLine",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "PDFKit"
    ],
    "preciseIdentifier" : "c:objc(cs)PDFAnnotationLine"
  },
  "title" : "PDFAnnotationLine"
}
-->

# PDFAnnotationLine

A `PDFAnnotationLine` object displays a single line on a page.

```
class PDFAnnotationLine
```

## Overview

The [`lineWidth`](/documentation/PDFKit/PDFBorder/lineWidth) and [`style`](/documentation/PDFKit/PDFBorder/style) properties of the annotation’s associated `PDFBorder` object determines the stroke thickness and style. The [`color`](/documentation/PDFKit/PDFAnnotation/color) property of the `PDFAnnotation` class determines the stroke color.

## Topics

### Specifying the Starting and Ending Points

[`-  startPoint`](/documentation/PDFKit/PDFAnnotationLine/startPoint())

Returns the starting point for the line.

[`-  setStartPoint:`](/documentation/PDFKit/PDFAnnotationLine/setStart(_:)-86is0)

Sets the starting point for the line.

[`-  endPoint`](/documentation/PDFKit/PDFAnnotationLine/endPoint())

Returns the ending point for the line in page space.

[`-  setEndPoint:`](/documentation/PDFKit/PDFAnnotationLine/setEnd(_:)-2qn58)

Sets the ending point for the line.

### Specifying the Line Ending Styles

[`-  startLineStyle`](/documentation/PDFKit/PDFAnnotationLine/startLineStyle())

Returns the line ending style for the starting point of the line.

[`-  setStartLineStyle:`](/documentation/PDFKit/PDFAnnotationLine/setStart(_:)-57pe0)

Sets the line ending style for the starting point of the line.

[`-  endLineStyle`](/documentation/PDFKit/PDFAnnotationLine/endLineStyle())

Returns the line ending style for the ending point of the line.

[`-  setEndLineStyle:`](/documentation/PDFKit/PDFAnnotationLine/setEnd(_:)-9cp0t)

Sets the line ending style for the ending point of the line.

### Specifying the Color of Line-end Ornaments

[`-  interiorColor`](/documentation/PDFKit/PDFAnnotationLine/interiorColor())

Returns the color used to fill the ornament at the ends of the line.

[`-  setInteriorColor:`](/documentation/PDFKit/PDFAnnotationLine/setInteriorColor(_:))

Sets the color used to fill the ornament at the ends of the line.

### Constants

[`PDFLineStyle`](/documentation/PDFKit/PDFLineStyle)

The following constants specify the available line ending styles.

## Relationships

### Conforms To

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

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

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

[`NSCopying`](/documentation/Foundation/NSCopying)

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

[`NSCoding`](/documentation/Foundation/NSCoding)

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

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

### Inherits From

[`PDFAnnotation`](/documentation/PDFKit/PDFAnnotation)

---

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)