Platforms to show: All Mac Windows Linux Cross-Platform
PDFAnnotationFreeTextMBS class
Super class: PDFAnnotationMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
class | PDFKit | MBS MacControls Plugin | 8.0 | Yes | No | No | Yes, macOS only | No |
Example:
dim f as FolderItem = SpecialFolder.Desktop.Child("test.pdf")
dim doc as new PDFDocumentMBS(f)
dim page as PDFPageMBS = doc.pageAtIndex(0)
dim annotations(-1) as PDFAnnotationMBS = page.annotations
for each a as PDFAnnotationMBS in annotations
if a isa PDFAnnotationFreeTextMBS then
dim ft as PDFAnnotationFreeTextMBS = PDFAnnotationFreeTextMBS(a)
MsgBox ft.contents
end if
next
- event drawWithBox(box as Integer, g as NSGraphicsMBS) as boolean
- 3 properties
- property alignment as Integer
- property font as NSFontMBS
- property fontColor as NSColorMBS
- method Constructor(left as single, top as single, width as single, height as single)
- 5 constants
- const NSCenterTextAlignment=2
- const NSJustifiedTextAlignment=3
- const NSLeftTextAlignment=0
- const NSNaturalTextAlignment=4
- const NSRightTextAlignment=1
Super class PDFAnnotationMBS
- 15 properties
- property border as PDFBorderMBS
- property bounds as NSRectMBS
- property colorValue as NSColorMBS
- property contents as string
- property Handle as Integer
- property hasAppearanceStream as boolean
- property modificationDate as date
- property mouseUpAction as PDFActionMBS
- property page as PDFPageMBS
- property popup as Variant
- property shouldDisplay as boolean
- property shouldPrint as boolean
- property toolTip as string
- property type as string
- property userName as string
- 5 methods
- method Constructor
- method copy as PDFAnnotationMBS
- method Destructor
- method drawWithBox(box as Integer)
- method removeAllAppearanceStreams
This class has no sub classes.
The items on this page are in the following plugins: MBS MacControls Plugin.
PDFAnnotationCircleMBS - PDFAnnotationInkMBS

Links
MBS Xojo Plugins