---
title: PDFAnnotationChoiceWidget
framework: pdfkit
role: symbol
role_heading: Class
path: pdfkit/pdfannotationchoicewidget
---

# PDFAnnotationChoiceWidget

A PDFAnnotationChoiceWidget object provides user interactivity on a page of a PDF document, in the form of pop-up menus and lists.

## Declaration

```swift
class PDFAnnotationChoiceWidget
```

## Overview

Overview PDFAnnotationChoiceWidget inherits general annotation behavior from the PDFAnnotation class. If you use a PDFAnnotationChoiceWidget object, your application must handle hit testing, unless you are simply using PDFView to display content. This is because PDFView automatically handles hit testing for you.

## Topics

### Getting and Setting the String Value

- [stringValue()](pdfkit/pdfannotationchoicewidget/stringvalue().md)
- [setStringValue(_:)](pdfkit/pdfannotationchoicewidget/setstringvalue(_:).md)

### Managing Font and Background Color Characteristics

- [backgroundColor()](pdfkit/pdfannotationchoicewidget/backgroundcolor().md)
- [setBackgroundColor(_:)](pdfkit/pdfannotationchoicewidget/setbackgroundcolor(_:).md)
- [font()](pdfkit/pdfannotationchoicewidget/font().md)
- [setFont(_:)](pdfkit/pdfannotationchoicewidget/setfont(_:).md)
- [fontColor()](pdfkit/pdfannotationchoicewidget/fontcolor().md)
- [setFontColor(_:)](pdfkit/pdfannotationchoicewidget/setfontcolor(_:).md)

### Managing the Associated Field Name

- [fieldName()](pdfkit/pdfannotationchoicewidget/fieldname().md)
- [setFieldName(_:)](pdfkit/pdfannotationchoicewidget/setfieldname(_:).md)

### Determining the Type of Choice Widget Annotation

- [isListChoice()](pdfkit/pdfannotationchoicewidget/islistchoice().md)
- [setIsListChoice(_:)](pdfkit/pdfannotationchoicewidget/setislistchoice(_:).md)

### Accessing the Items in the Choice Widget Annotation

- [choices()](pdfkit/pdfannotationchoicewidget/choices().md)
- [setChoices(_:)](pdfkit/pdfannotationchoicewidget/setchoices(_:).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)
- [PDFAnnotationCircle](pdfkit/pdfannotationcircle.md)
- [PDFAnnotationFreeText](pdfkit/pdfannotationfreetext.md)
- [PDFAnnotationInk](pdfkit/pdfannotationink.md)
- [PDFAnnotationLine](pdfkit/pdfannotationline.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)
