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

# PDFAnnotationSquare

A rectangle annotation on a page.

```
class PDFAnnotationSquare
```

## 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

### Accessor methods

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

Gets the fill color used for drawing the annotation.

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

Sets the fill color used for drawing the annotation.

## Relationships

### Conforms To

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

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

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

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

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

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

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

[`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)