Click or drag to resize

PdfAnnotationCollection Class

Represents a collection of annotation.
Inheritance Hierarchy
SystemObject
  Patagames.Pdf.Net.AnnotationsPdfAnnotationCollection

Namespace: Patagames.Pdf.Net.Annotations
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.111.2704
Syntax
public class PdfAnnotationCollection : IList<PdfAnnotation>, 
	ICollection<PdfAnnotation>, IEnumerable<PdfAnnotation>, IEnumerable, 
	IDisposable

The PdfAnnotationCollection type exposes the following members.

Properties
 NameDescription
Public propertyCount Gets the number of annotations contained in the collection.
Public propertyIsDisposed Gets a value indicating whether the underlying array has been disposed of.
Public propertyIsReadOnly Gets a value indicating whether the collection is read-only.
Public propertyItem Gets or sets the annotation at the specified index
Public propertyPage Gets page with which this collection is assosiated.Gets page with which this collection is associated. All annotations added to the collection should be associated with this page only.
Top
Methods
 NameDescription
Public methodAdd Adds an annotation to the collection
Public methodClear Removes all annotations from the collection
Public methodContains Determines whether the collection contains a specific annotation.
Public methodCopyTo Copies the elements of the collections to an System.Array, starting at a particular System.Array index.
Public methodDispose Releases all resources used by the PdfAnnotationCollection.
Protected methodDispose(Boolean) Releases all resources used by the PdfAnnotationCollection.
Public methodGetByDictionary Determines whether the collection contains a specific annotation.
Public methodGetEnumerator Returns an enumerator that iterates through the collection.
Public methodIndexOf Determines the index of a specific annotation in the collection.
Public methodInsert Inserts an annotation to the collection at the specified index.
Public methodRemove Removes the first occurrence of a specific annotation from the collection.
Public methodRemoveAt Removes the annotation at the specified index.
Top
Remarks
Each annotation contained in the collection may be referenced from the collection associated with only one page. Attempting to share an annotation among multiple pages produces unpredictable behavior. This requirement applies only to the annotation itself, not to subsidiary objects, which can be shared among multiple annotations without causing any difficulty.
See Also