| Inherits from | |
| Conforms to | |
| Framework | Library/Frameworks/Quartz.framework/Frameworks/PDFKit.framework |
| Availability | Available in Mac OS X v10.4 and later.
|
| Declared in | PDFAnnotationTextWidget.h |
A PDFAnnotationTextWidget object allows you to manage the appearance and content of text fields.
PDFAnnotationTextWidget objects support interactive forms in a PDF document. This object is comparable to an editable NSTextField in Cocoa or an edit text view in Carbon.
Returns the text alignment setting for the annotation.
- (NSTextAlignment)alignment
The text alignment value for the annotation. Supported alignment values are NSLeftTextAlignment, NSRightTextAlignment, and NSCenterTextAlignment.
PDFAnnotationTextWidget.hReturns the background color of the annotation text field.
- (NSColor *)backgroundColor
The background color of the annotation’s text field.
– setBackgroundColor:PDFAnnotationTextWidget.hReturns the internal name for the annotation text field.
- (NSString *)fieldName
The internal name for the annotation text field.
Field names are optional, internal names that identify text fields in a PDF form. You use field names with the PDFActionResetForm action.
Note that multiple PDFAnnotationTextWidget objects with the same field name always have the same text associated with that field name. When text is entered into one of the objects, the text associated with that field name is changed in all objects. If you need to ensure unique text for a PDFAnnotationTextWidget object, you must give it a unique field name (you can use setFieldName: to do this).
– setFIeldName:PDFAnnotationTextWidget.hReturns the font used for the annotation’s text field.
- (NSFont *)font
The font used for text in the annotation’s text field.
PDFAnnotationTextWidget.hReturns the font color used for the annotation’s text field.
- (NSColor *)fontColor
The font color used for text in the annotation’s text field.
– setFontColor:PDFAnnotationTextWidget.hReturns the maximum number of characters allowed in the annotation string.
- (NSUInteger)maximumLength
The maximum number of characters allowed in the annotations string. A return value of 0 means that there is no specified maximum.
– setMaximumLength:PDFAnnotationTextWidget.hReturns the rotation angle of the annotation text field in degrees.
- (int)rotation
The rotation angle of the annotation text field in degrees.
Note that the rotation value is a positive multiple of 90, such as 0, 90, 180, or 270. The rotation of annotation text fields with negative rotation is converted to a corresponding positive rotation. For example, -90 is changed to 270.
– setRotation:PDFAnnotationTextWidget.hSets the text alignment for the annotation.
- (void)setAlignment:(NSTextAlignment)alignment
The text-alignment value to be used for the annotation. Possible values are NSLeftTextAlignment, NSRightTextAlignment, and NSCenterTextAlignment.
PDFAnnotationTextWidget.hSets the background color of the annotation text field.
- (void)setBackgroundColor:(NSColor *)color
The color to be used in the background of the annotation’s text field.
– backgroundColorPDFAnnotationTextWidget.hSets the internal field name for the annotation text field.
- (void)setFieldName:(NSString *)name
The internal field name to be used for the annotation text field.
Field names are optional, internal names that identify text fields in a PDF form. You use field names with the PDFActionResetForm action.
Note that multiple PDFAnnotationTextWidget objects with the same field name always have the same text associated with that field name. When text is entered into one of the objects, the text associated with that field name is changed in all objects. If you need to ensure unique text for a PDFAnnotationTextWidget object, you must give it a unique field name.
– fieldNamePDFAnnotationTextWidget.hSets the font used in the text field of the annotation.
- (void)setFont:(NSFont *)font
The font to be used in the annotation’s text field.
PDFAnnotationTextWidget.hSets the font color used for the annotation’s text field.
- (void)setFontColor:(NSColor *)color
The font color to be used in the annotation’s text field.
– fontColorPDFAnnotationTextWidget.hSets the maximum number of characters allowed in the annotation string.
- (void)setMaximumLength:(NSUInteger)maxLen
The maximum number of characters allowed in the annotation string. Pass 0 to indicate that there is no specified maximum.
– maximumLengthPDFAnnotationTextWidget.hSets the rotation angle of the annotation text field in degrees.
- (void)setRotation:(int)rotation
The rotation angle to be applied to the annotation text field, in degrees. The rotation angle must be a positive or negative multiple of 90 (negative angles are converted to their positive equivalents; for example -90 is changed to 270).
– rotationPDFAnnotationTextWidget.hSets the string for the annotation.
- (void)setStringValue:(NSString *)value
The string to be assigned to the annotation.
PDFAnnotationTextWidget.hReturns the string assigned to the annotation.
- (NSString *)stringValue
The string assigned to the annotation.
PDFAnnotationTextWidget.h
Last updated: 2007-12-11