Show / Hide Table of Contents

Class PolyLine

Polyline annotations (PDF 1.5) display (open or closed) shapes of multiple edges on the page. Such polylines may have any number of vertices connected by straight lines. For open polylines, which is the default type of polylines, the first and last vertex are not implicitly connected. Closed polylines are polygons, whose first and last vertex are connected.

Inheritance
System.Object
Annot
Markup
Line
PolyLine
Polygon
Implements
System.IDisposable
Inherited Members
Line.GetStartPoint()
Line.SetStartPoint(Point)
Line.GetEndPoint()
Line.SetEndPoint(Point)
Line.GetStartStyle()
Line.SetStartStyle(Line.EndingStyle)
Line.GetEndStyle()
Line.SetEndStyle(Line.EndingStyle)
Line.GetLeaderLineLength()
Line.SetLeaderLineLength(Double)
Line.GetLeaderLineExtensionLength()
Line.SetLeaderLineExtensionLength(Double)
Line.GetShowCaption()
Line.SetShowCaption(Boolean)
Line.GetIntentType()
Line.SetIntentType(Line.IntentType)
Line.GetLeaderLineOffset()
Line.SetLeaderLineOffset(Double)
Line.GetCaptionPosition()
Line.SetCaptionPosition(Line.CapPos)
Line.GetTextHOffset()
Line.SetTextHOffset(Double)
Line.GetTextVOffset()
Line.SetTextVOffset(Double)
Markup.GetTitle()
Markup.SetTitle(String)
Markup.GetPopup()
Markup.SetPopup(Popup)
Markup.GetOpacity()
Markup.SetOpacity(Double)
Markup.GetSubject()
Markup.SetSubject(String)
Markup.GetCreationDates()
Markup.SetCreationDates(Date)
Markup.GetBorderEffect()
Markup.SetBorderEffect(Markup.BorderEffect)
Markup.GetBorderEffectIntensity()
Markup.SetBorderEffectIntensity(Double)
Markup.GetInteriorColor()
Markup.GetInteriorColorCompNum()
Markup.SetInteriorColor(ColorPt, Int32)
Markup.GetContentRect()
Markup.SetContentRect(Rect)
Markup.GetPadding()
Markup.SetPadding(Rect)
Markup.RotateAppearance(Double)
Annot.Dispose()
Annot.Dispose(Boolean)
Annot.GetHandleInternal()
Annot.GetRefHandleInternal()
Annot.CreateInternal(IntPtr, Object)
Annot.Create(SDFDoc, Annot.Type, Rect)
Annot.op_Assign(Annot)
Annot.Equals(Object)
Annot.IsValid()
Annot.GetSDFObj()
Annot.GetType()
Annot.IsMarkup()
Annot.GetRect()
Annot.GetVisibleContentBox()
Annot.SetRect(Rect)
Annot.GetContents()
Annot.SetContents(String)
Annot.GetPage()
Annot.SetPage(Page)
Annot.GetUniqueID()
Annot.SetUniqueID(String)
Annot.GetDate()
Annot.SetDate(Date)
Annot.GetFlag(Annot.Flag)
Annot.SetFlag(Annot.Flag, Boolean)
Annot.GetBorderStyle()
Annot.SetBorderStyle(Annot.BorderStyle)
Annot.GetAppearance()
Annot.GetAppearance(Annot.AnnotationState)
Annot.GetAppearance(Annot.AnnotationState, String)
Annot.SetAppearance(Obj)
Annot.SetAppearance(Obj, Annot.AnnotationState)
Annot.SetAppearance(Obj, Annot.AnnotationState, String)
Annot.RemoveAppearance()
Annot.RemoveAppearance(Annot.AnnotationState)
Annot.RemoveAppearance(Annot.AnnotationState, String)
Annot.Flatten(Page)
Annot.GetActiveAppearanceState()
Annot.SetActiveAppearanceState(String)
Annot.GetColorAsRGB()
Annot.GetColorAsCMYK()
Annot.GetColorAsGray()
Annot.GetColorCompNum()
Annot.SetColor(ColorPt, Int32)
Annot.SetColor(ColorPt)
Annot.GetStructParent()
Annot.SetStructParent(Int32)
Annot.GetOptionalContent()
Annot.SetOptionalContent(Obj)
Annot.Resize(Rect)
Annot.GetRotation()
Annot.SetRotation(Int32)
Annot.RefreshAppearance()
Annot.GetCustomData(String)
Annot.SetCustomData(String, String)
Annot.DeleteCustomData(String)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: pdftron.PDF.Annots
Assembly: PDFNetiOS.dll
Syntax
public class PolyLine : Line, IDisposable

Constructors

PolyLine(Annot)

Creates a PolyLine annotation and initialize it using given annotation object.

Declaration
public PolyLine(Annot ann)
Parameters
Type Name Description
Annot ann

the annot

Remarks

The constructor does not copy any data, but is instead the logical equivalent of a type cast.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

PolyLine(Obj)

Creates a PolyLine annotation and initialize it using given Cos/SDF object.

Declaration
public PolyLine(Obj d)
Parameters
Type Name Description
Obj d

the d

Remarks

The constructor does not copy any data, but is instead the logical equivalent of a type cast.

Methods

Create(SDFDoc, Rect)

Creates a new PolyLine annotation, in the specified document.

Declaration
public static PolyLine Create(SDFDoc doc, Rect pos)
Parameters
Type Name Description
SDFDoc doc

A document to which the PolyLine annotation is added.

Rect pos

A rectangle specifying the PolyLine annotation's bounds, specified in user space coordinates.

Returns
Type Description
PolyLine

A newly created blank PolyLine annotation.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

Finalize()

Releases all resources used by the PolyLine

Declaration
protected void Finalize()

GetIntentName()

Gets the Intent name as an entry from the enum "IntentName" of the annnotation type.

Declaration
public PolyLine.IntentType GetIntentName()
Returns
Type Description
PolyLine.IntentType

the intent name

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetVertex(Int32)

Gets the vertex(in Point object form) corresponding to the index within the VErtices array.

Declaration
public Point GetVertex(int idx)
Parameters
Type Name Description
System.Int32 idx

The index position where the vertex is located.

Returns
Type Description
Point

A Point object corresponding to the vertex in the specified index position.

Remarks

The Vertices array is An array of numbers specifying the width and dash pattern that shall represent each vertex in default user space in Point form,

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetVertexCount()

Gets the number of vertices in the Vertices array.

Declaration
public int GetVertexCount()
Returns
Type Description
System.Int32

An int indicating the number of vertices.

Remarks

The Vertices array is An array of numbers specifying the width and dash pattern that shall represent each vertex in default user space in Point form,

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

SetIntentName(PolyLine.IntentType)

Sets the Intent name as an entry from the enum "IntentName" of the annnotation type. (Optional; PDF 1.6 )

Declaration
public void SetIntentName(PolyLine.IntentType mode)
Parameters
Type Name Description
PolyLine.IntentType mode

The intent name of the annotation using an entry from the enum "IntentName".

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

SetVertex(Int32, Point)

Sets the vertex(in Point object form) corresponding to the index within the VErtices array.

Declaration
public void SetVertex(int idx, Point pt)
Parameters
Type Name Description
System.Int32 idx

The index position where the vertex is to be located.

Point pt

A Point object corresponding to the vertex to be added to the array.

Remarks

The Vertices array is An array of numbers specifying the width and dash pattern that shall represent each vertex in default user space in Point form,

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

Implements

System.IDisposable
In This Article
Back to top Generated by DocFX