Platforms to show: All Mac Windows Linux Cross-Platform

Back to PDFAnnotationLineMBS class.

PDFAnnotationLineMBS.endLineStyle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property PDFKit MBS PDFKit Plugin 8.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Style used for ornaments at the line end.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("test.pdf")
dim doc as new PDFDocumentMBS(f)

dim page as PDFPageMBS = doc.pageAtIndex(0)
dim a as new PDFAnnotationLineMBS(100,100,100,100)

a.colorValue = NSColorMBS.redColor
a.endLineStyle = a.kPDFLineStyleOpenArrow

page.addAnnotation(a)

dim o as FolderItem = SpecialFolder.Desktop.Child("testout.pdf")
call doc.write(o)

(Read and Write property)

PDFAnnotationLineMBS.endPoint as NSPointMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property PDFKit MBS PDFKit Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
A point specifying the end point for line annotation.
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

// show lines on first page
for each a as PDFAnnotationMBS in annotations
if a isa PDFAnnotationLineMBS then
dim l as PDFAnnotationLineMBS = PDFAnnotationLineMBS(a)
MsgBox "Line from "+l.startPoint.String+" to "+l.endPoint.String
end if
next

(Read and Write property)

PDFAnnotationLineMBS.interiorColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property PDFKit MBS PDFKit Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The color used to fill the ornament at the ends of the line.

Available in Mac OS X v10.5 and later.
(Read and Write property)

PDFAnnotationLineMBS.startLineStyle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property PDFKit MBS PDFKit Plugin 8.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Style used for ornaments at the line start.
Example
dim a as new PDFAnnotationLineMBS(100,100,100,100)
a.startLineStyle = a.kPDFLineStyleSquare

(Read and Write property)

PDFAnnotationLineMBS.startPoint as NSPointMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property PDFKit MBS PDFKit Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
A point specifying the start pointfor line annotation.
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

// show lines on first page
for each a as PDFAnnotationMBS in annotations
if a isa PDFAnnotationLineMBS then
dim l as PDFAnnotationLineMBS = PDFAnnotationLineMBS(a)
MsgBox "Line from "+l.startPoint.String+" to "+l.endPoint.String
end if
next

(Read and Write property)

The items on this page are in the following plugins: MBS PDFKit Plugin.


The biggest plugin in space...