---
title: type
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfannotation/type
---

# type

Returns the type of the annotation.

## Declaration

```swift
var type: String? { get set }
```

## Return Value

Return Value The type of the annotation. Types include Line, Link, Text, and so on, referring to the PDFAnnotation subclasses. In the Adobe PDF Specification, this attribute is called Subtype, and the common “type” for all annotations in the PDF Specification is Annot.

## See Also

### Accessing Information About an Annotation

- [page](pdfkit/pdfannotation/page.md)
- [modificationDate](pdfkit/pdfannotation/modificationdate.md)
- [userName](pdfkit/pdfannotation/username.md)
- [action](pdfkit/pdfannotation/action.md)
- [PDFAction](pdfkit/pdfaction.md)
- [PDFDestination](pdfkit/pdfdestination.md)
