Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

Next Page > Hide TOC

PDFBorder Class Reference

Inherits from
Conforms to
Framework
Library/Frameworks/Quartz.framework/Frameworks/PDFKit.framework
Availability
Available in Mac OS X v10.4 and later.
Declared in
PDFBorder.h

Overview

A PDFBorder object, when used, adds an optional border to an annotation. Borders are drawn completely within the annotation rectangle.

Tasks

Working with Border Styles and Characteristics

Drawing Borders

Instance Methods

dashPattern

Gets the dash pattern for the border as an array of NSNumber objects.

- (NSArray *)dashPattern

Discussion

Refer to the description for NSBezierPath for more information.

Availability
See Also
Declared In
PDFBorder.h

drawInRect:

Draws the border.

- (void)drawInRect:(NSRect)rect

Availability
Declared In
PDFBorder.h

horizontalCornerRadius

Gets the horizontal corner radius (in points) used for a rounded-rectangle border.

- (float)horizontalCornerRadius

Availability
See Also
Declared In
PDFBorder.h

lineWidth

Gets the line width for the border, in points.

- (float)lineWidth

Availability
See Also
Declared In
PDFBorder.h

setDashPattern:

Sets the dash pattern for the border.

- (void)setDashPattern:(NSArray *)pattern

Discussion

Provide pattern as an array of NSNumber objects. Refer to the description for NSBezierPath for more information.

Availability
See Also
Declared In
PDFBorder.h

setHorizontalCornerRadius:

Sets the horizontal corner radius (in points) used for a rounded-rectangle border.

- (void)setHorizontalCornerRadius:(float)radius

Availability
See Also
Declared In
PDFBorder.h

setLineWidth:

Sets the line width (in points) for the border.

- (void)setLineWidth:(float)width

Availability
See Also
Declared In
PDFBorder.h

setStyle:

Sets the border style.

- (void)setStyle:(PDFBorderStyle)style

Discussion

Refer to “Constants” for the available border styles.

Availability
See Also
Declared In
PDFBorder.h

setVerticalCornerRadius:

Sets the vertical corner radius (in points) used for a rounded-rectangle border.

- (void)setVerticalCornerRadius:(float)radius

Availability
See Also
Declared In
PDFBorder.h

style

Gets the border style.

- (PDFBorderStyle)style

Discussion

See “Constants” for possible return values.

Availability
See Also
Declared In
PDFBorder.h

verticalCornerRadius

Gets the vertical corner radius used for a rounded-rectangle border, in points.

- (float)verticalCornerRadius

Availability
See Also
Declared In
PDFBorder.h

Constants

PDF Kit annotation borders may have the following styles:

Constant

Description

kPDFBorderStyleSolid

Solid border.

Available in Mac OS X v10.4 and later.

Declared in PDFBorder.h

kPDFBorderStyleDashed

Dashed border.

Available in Mac OS X v10.4 and later.

Declared in PDFBorder.h

kPDFBorderStyleBeveled

Beveled border.

Available in Mac OS X v10.4 and later.

Declared in PDFBorder.h

kPDFBorderStyleInset

Inset border.

Available in Mac OS X v10.4 and later.

Declared in PDFBorder.h

kPDFBorderStyleUnderline

Underline border.

Available in Mac OS X v10.4 and later.

Declared in PDFBorder.h



Next Page > Hide TOC


Last updated: 2006-05-23




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice