Class

PDFAnnotationChoiceWidget

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

Declaration

@interface PDFAnnotationChoiceWidget : PDFAnnotation

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

Returns the selection in the widget annotation.

- setStringValue:

Sets the selection in the widget annotation.

Managing Font and Background Color Characteristics

- backgroundColor

Returns the color of the widget annotation background.

- setBackgroundColor:

Sets the background color of the widget annotation.

- font

Returns the font used to display the text in the widget annotation.

- setFont:

Sets the font used to display the text in the widget annotation.

- fontColor

Returns the font color used to display the text in the widget annotation.

- setFontColor:

Sets the font color used to display the text in the widget annotation.

Managing the Associated Field Name

- fieldName

Returns the internal field name associated with the widget annotation.

- setFieldName:

Sets the internal field name associated with the widget annotation’s value.

Determining the Type of Choice Widget Annotation

- isListChoice

Returns a Boolean value indicating whether the widget annotation is a list.

- setIsListChoice:

Sets whether the widget annotation is a list.

Accessing the Items in the Choice Widget Annotation

- choices

Returns an array of strings that represent the items available in the list or pop-up menu of the choice widget annotation.

- setChoices:

Sets the items available in the list or pop-up menu of the choice widget annotation.

Relationships

Inherits From

Conforms To

See Also

Annotation Types

PDFAnnotationButtonWidget

A PDFAnnotationButtonWidget object provides user interactivity on a page of a PDF document. There are three types of buttons available: push button, radio button, and checkbox.

Deprecated
PDFAnnotationFreeText

A PDFAnnotationFreeText object displays text on a page.

Deprecated
PDFAnnotationLine

A PDFAnnotationLine object displays a single line on a page.

Deprecated
PDFAnnotationMarkup

A PDFAnnotationMarkup object appears as highlighting, underlining, or a strikethrough style applied to the text of a document.

Deprecated
PDFAnnotationPopup

A PDFAnnotationPopup object provides user interactivity on a PDF page in the form of a pop-up menu.

Deprecated
PDFAnnotationStamp

A PDFAnnotationStamp object allows you to display a word or phrase, such as “Confidential,“ in a PDF page.

Deprecated
PDFAnnotationText

A PDFAnnotationText object displays as an icon (such as a “sticky note”) attached to a specified point in the PDF document.

Deprecated
PDFAnnotationTextWidget

A PDFAnnotationTextWidget object allows you to manage the appearance and content of text fields.

Deprecated