Skip to content

# PDFAnnotationCollection

Namespace: O2S.Components.PDF4NET.Annotations

Defines a collection of PDF annotations.

    public class PDFAnnotationCollection : System.Collections.ObjectModel.Collection`1[[O2S.Components.PDF4NET.Annotations.PDFAnnotation, O2S.Components.PDF4NET.NetStandard, Version=16.3.0.1, Culture=neutral, PublicKeyToken=80d03dd9e5b85317]]

Inheritance Object → Collection<PDFAnnotation> → PDFAnnotationCollection
Implements

## Properties

### Count

    public int Count { get; }

Property Value

Int32

### Item

    public PDFAnnotation Item { get; set; }

Property Value

PDFAnnotation

## Methods

### MoveAnnotation(PDFAnnotation, Int32)

Moves the item up or down to the beginning or end of the collection.

    public bool MoveAnnotation(PDFAnnotation annotation, int step)

Parameters

`annotation` PDFAnnotation
Item to move.

`step` Int32
Number of positions to move.

Returns

Boolean
True if the item has been moved.

Remarks

It the new position is outside the collection, the item is not moved.