| Inherits from | |
| Conforms to | |
| Framework | Library/Frameworks/Quartz.framework/Frameworks/PDFKit.framework |
| Availability | Available in Mac OS X v10.4 and later.
|
| Declared in | PDFAnnotationFreeText.h |
A PDFAnnotationFreeText object displays text on a page.
Unlike a PDFAnnotationText object, a PDFAnnotationFreeText object has no open or closed state; its text is always visible. The text annotation performed in Preview uses PDFAnnotationFreeText.
The PDFAnnotation class’s contents and setContents: methods let you get and set the textual content for a PDFAnnotationFreeText object.
Returns the horizontal alignment of text within the bounds of the annotation.
- (NSTextAlignment)alignment
The horizontal alignment of text within the bounds of the annotation. Supported values are NSLeftTextAlignment, NSRightTextAlignment, and NSCenterTextAlignment.
PDFAnnotationFreeText.hReturns the font used for the annotation’s text field.
- (NSFont *)font
The font used for the annotation’s text field.
PDFAnnotationFreeText.hReturns the font color used in the text field of the annotation.
- (NSColor *)fontColor
The font color used in the text field of the annotation.
– setFontColor:PDFAnnotationFreeText.hSets the horizontal alignment of text within the bounds of the annotation.
- (void)setAlignment:(NSTextAlignment)alignment
Send NSLeftTextAlignment, NSRightTextAlignment, or NSCenterTextAlignment to set the horizontal alignment of text within the bounds of the annotation.
PDFAnnotationFreeText.hSets the font used in the text field of the annotation.
- (void)setFont:(NSFont *)font
The font to be used in the text field of the annotation.
PDFAnnotationFreeText.hSets the font color used in the text field of the annotation.
- (void)setFontColor:(NSColor *)color
The font color to be used in the text field of the annotation.
– fontColorPDFAnnotationFreeText.h
Last updated: 2007-12-11