Table of Contents

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

int

this[int]

Gets the PdfAnnotation at the specified index.

public PdfAnnotation this[int index] { get; }

Parameters

index int

Property Value

PdfAnnotation

Methods

Add(PdfAnnotation)

Adds the specified annotation.

public void Add(PdfAnnotation annotation)

Parameters

annotation PdfAnnotation

The 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

IEnumerator<PdfItem>

Remove(PdfAnnotation)

Removes an annotation from the document.

public void Remove(PdfAnnotation annotation)

Parameters

annotation PdfAnnotation