| Inherits from | |
| Conforms to | |
| Framework | Library/Frameworks/Quartz.framework/Frameworks/PDFKit.framework |
| Availability | Available in Mac OS X v10.5 and later.
|
| Declared in | PDFThumbnailView.h |
A PDFThumbnailView object contains a set of thumbnails, each of which represents a page in a PDF document.
– maximumNumberOfColumns
– setMaximumNumberOfColumns:
– labelFont
– setLabelFont:
– backgroundColor
– setBackgroundColor:
– allowsDragging
– setAllowsDragging:
– allowsMultipleSelection
– setAllowsMultipleSelection:
– selectedPages
Returns a Boolean value indicating whether users can drag thumbnails (that is, re-order pages in the document) within the thumbnail view.
- (BOOL)allowsDragging
YES if users can re-order pages by dragging thumbnails, NO otherwise.
PDFThumbnailView.hReturns a Boolean value indicating whether users can select multiple thumbnails in the thumbnail view at one time.
- (BOOL)allowsMultipleSelection
YES if users can select multiple thumbnails simultaneously, NO otherwise.
By default, PDFThumbnailView allows only a single thumbnail to be selected at one time. When this is the case, you can get the PDF page that corresponds to the selected thumbnail using the PDFView method currentPage.
When multiple selections are enabled, however, you must use selectedPages to get the pages that correspond to the set of selected thumbnails.
PDFThumbnailView.hReturns the color used in the background of the thumbnail view.
- (NSColor *)backgroundColor
The color of the background in the thumbnail view.
PDFThumbnailView.hReturns the font used to label the thumbnails.
- (NSFont *)labelFont
The font used in the thumbnail labels.
Typically, the label of a thumbnail is the page number of the page it represents.
PDFThumbnailView.hReturns the maximum number of columns of thumbnails the thumbnail view can display.
- (NSUInteger)maximumNumberOfColumns
The maximum number of columns of thumbnails the thumbnail view can display. If 0, the thumbnail displays as many columns of thumbnails as fit in its size.
PDFThumbnailView.hReturns the PDFView object associated with the thumbnail view.
- (PDFView *)PDFView
The PDF view object associated with the thumbnail view.
PDFThumbnailView.hReturns an array of PDF pages that correspond to the selected thumbnails in the thumbnail view.
- (NSArray *)selectedPages
An array of PDF pages that correspond to the thumbnails selected in the thumbnail view.
If the thumbnail view allows multiple selections (if allowsMultipleSelection returns YES), you can use this method to get the PDF pages that correspond to the selected thumbnails.
PDFThumbnailView.hSets whether users can drag thumbnails within the thumbnail view; that is, re-order pages in the document.
- (void)setAllowsDragging:(BOOL)allow
Pass YES to allow users to drag thumbnails in the thumbnail view (this allows them to re-order pages in the document), or NO to disallow.
PDFThumbnailView.hSets whether the thumbnail view allows users to select more than one thumbnail at a time.
- (void)setAllowsMultipleSelection:(BOOL)flag
Pass YES to allows users to select multiple thumbnails at one time, or NO to disallow.
By default, PDFThumbnailView allows only a single thumbnail to be selected at one time. When this is the case, you can get the PDF page that corresponds to the selected thumbnail using the PDFView method currentPage.
If you use setAllowsMultipleSelection to enable multiple selections, however, you must use selectedPages to get the pages that correspond to the set of selected thumbnails.
PDFThumbnailView.hSets the color used in the background of the thumbnail view.
- (void)setBackgroundColor:(NSColor *)color
The color to be used in the background of the thumbnail view.
PDFThumbnailView.hSets the font used to label the thumbnails.
- (void)setLabelFont:(NSFont *)font
The font to be used in the thumbnail labels.
Typically, the label of a thumbnail is the page number of the page it represents.
PDFThumbnailView.hSets the maximum number of columns of thumbnails the thumbnail view can display.
- (void)setMaximumNumberOfColumns:(NSUInteger)maxColumns
The maximum number of columns of thumbnails the thumbnail view can display. Pass 0 to make the thumbnail view display as many columns as fit in its size.
PDFThumbnailView.hAssociates the specified PDFView object with the thumbnail view.
- (void)setPDFView:(PDFView *)view
The PDF view object to associate with the thumbnail view.
PDFThumbnailView.hSets the maximum width and height of the thumbnails in the thumbnail view.
- (void)setThumbnailSize:(NSSize)size
The maximum width and height the thumbnails in the thumbnail view should be.
PDFThumbnailView.hReturns the maximum width and height of the thumbnails in the thumbnail view.
- (NSSize)thumbnailSize
The maximum width and height of the thumbnails in the thumbnail view.
PDFThumbnailView.h
Last updated: 2007-12-11