Namespace: PdfSharp.Pdf.Annotations
Represents the annotations array of a page.
public sealed class PdfAnnotations : PdfSharp.Pdf.PdfArray, System.ICloneable, System.Collections.Generic.IEnumerable`1[[PdfSharp.Pdf.PdfItem, PdfSharp, Version=0.1.3.0, Culture=neutral, PublicKeyToken=null]], System.Collections.IEnumerable
Inheritance Object → PdfItem → PdfObject → PdfArray → PdfAnnotations
Implements ICloneable, IEnumerable<PdfItem>, IEnumerable
Gets the number of annotations in this collection.
public int Count { get; }
public PdfAnnotation Item { get; }
Gets the collection containing the elements of this object.
public ArrayElements Elements { get; }
Gets the PdfDocument this object belongs to.
public PdfDocument Owner { get; }
Indicates whether the object is an indirect object.
public bool IsIndirect { get; }
Gets the PdfInternals object of this document, that grants access to some internal structures which are not part of the public interface of PdfDocument.
public PdfObjectInternals Internals { get; }
Gets the indirect reference of this object. If the value is null, this object is a direct object.
public PdfReference Reference { get; internal set; }
Gets the indirect reference of this object. Throws if it is null.
public PdfReference ReferenceNotNull { get; }
InvalidOperationException
The indirect reference must be not null here.
Adds the specified annotation.
public void Add(PdfAnnotation annotation)
annotation
PdfAnnotation
The annotation.
Removes an annotation from the document.
public void Remove(PdfAnnotation annotation)
annotation
PdfAnnotation
Removes all the annotations from the current page.
public void Clear()
Fixes the /P element in imported annotation.
internal static void FixImportedAnnotation(PdfPage page)
page
PdfPage
Returns an enumerator that iterates through a collection.
public IEnumerator<PdfItem> GetEnumerator()