Class PdfAnnotations
- Namespace
- PdfSharp.Pdf.Annotations
- Assembly
- PdfSharp.dll
Represents the annotations array of a page.
public sealed class PdfAnnotations : PdfArray, ICloneable, IEnumerable<PdfItem>, IEnumerable
- Inheritance
-
PdfAnnotations
- Implements
- Inherited Members
Properties
Count
Gets the number of annotations in this collection.
public int Count { get; }
Property Value
this[int]
Gets the PdfAnnotation at the specified index.
public PdfAnnotation this[int index] { get; }
Parameters
index
int
Property Value
Methods
Add(PdfAnnotation)
Adds the specified annotation.
public void Add(PdfAnnotation annotation)
Parameters
annotation
PdfAnnotationThe annotation.
Clear()
Removes all the annotations from the current page.
public void Clear()
GetEnumerator()
Returns an enumerator that iterates through a collection.
public override IEnumerator<PdfItem> GetEnumerator()
Returns
Remove(PdfAnnotation)
Removes an annotation from the document.
public void Remove(PdfAnnotation annotation)
Parameters
annotation
PdfAnnotation