| Inherits from | |
| Conforms to | |
| Framework | Library/Frameworks/Quartz.framework/Frameworks/PDFKit.framework |
| Availability | Available in Mac OS X v10.5 and later.
|
| Declared in | PDFAnnotationChoiceWidget.h |
A PDFAnnotationChoiceWidget object provides user interactivity on a page of a PDF document, in the form of pop-up menus and lists.
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.
Returns the color of the widget annotation background.
- (NSColor *)backgroundColor
The color of the widget annotation background.
PDFAnnotationChoiceWidget.hReturns an array of strings that represent the items available in the list or pop-up menu of the choice widget annotation.
- (NSArray *)choices
An array of strings that represent the items in the list or pop-up menu choice widget annotation.
PDFAnnotationChoiceWidget.hReturns the internal field name associated with the widget annotation.
- (NSString *)fieldName
The internal field name associated with the widget annotation.
If the widget annotation is backed by PDF form data, it can associate an optional field name with a value or other data.
PDFAnnotationChoiceWidget.hReturns the font used to display the text in the widget annotation.
- (NSFont *)font
The font used to display the text in the widget annotation.
PDFAnnotationChoiceWidget.hReturns the font color used to display the text in the widget annotation.
- (NSColor *)fontColor
The color of the font used for the text in the widget annotation.
PDFAnnotationChoiceWidget.hReturns a Boolean value indicating whether the widget annotation is a list.
- (BOOL)isListChoice
YES if the widget annotation is a list, NO otherwise.
A choice widget annotation can be either a list or a pop-up menu.
PDFAnnotationChoiceWidget.hSets the background color of the widget annotation.
- (void)setBackgroundColor:(NSColor *)color
The color to use in the background of the widget annotation.
PDFAnnotationChoiceWidget.hSets the items available in the list or pop-up menu of the choice widget annotation.
- (void)setChoices:(NSArray *)options
Send an array of strings, each of which represents an item in the list or pop-up menu of the choice annotation widget.
PDFAnnotationChoiceWidget.hSets the internal field name associated with the widget annotation’s value.
- (void)setFieldName:(NSString *)name
The name to be used as the internal field name associated with the widget annotation.
If the widget annotation is backed by PDF form data, it can associate an optional field name with a value or other data.
PDFAnnotationChoiceWidget.hSets the font used to display the text in the widget annotation.
- (void)setFont:(NSFont *)font
The font to be used for the text in the widget annotation.
PDFAnnotationChoiceWidget.hSets the font color used to display the text in the widget annotation.
- (void)setFontColor:(NSColor *)color
The color of the font to be used for the text in the widget annotation.
PDFAnnotationChoiceWidget.hSets whether the widget annotation is a list.
- (void)setIsListChoice:(BOOL)isList
Send YES to set the choice widget annotation is a list, NO otherwise.
A choice widget annotation can be either a list or a pop-up menu.
PDFAnnotationChoiceWidget.hSets the selection in the widget annotation.
- (void)setStringValue:(NSString *)value
The string that represents the selection in the widget annotation.
If the widget annotation object is backed by PDF form data, this method updates the value associated with the appropriate field in the form object.
PDFAnnotationChoiceWidget.hReturns the selection in the widget annotation.
- (NSString *)stringValue
The string that represents the selection in the widget annotation.
If the widget annotation object is backed by PDF form data, this method returns the value associated with the appropriate field in the form object, if possible.
PDFAnnotationChoiceWidget.h
Last updated: 2007-12-11