Aspose::Pdf::Annotations::AnnotationCollection class

AnnotationCollection class

Class representing annotation collection.

class AnnotationCollection : public System::Collections::Generic::ICollection<System::SharedPtr<Aspose::Pdf::Annotations::Annotation>>

Methods

MethodDescription
Accept(System::SharedPtr<AnnotationSelector>)Accepts visitor to process annotation.
Add(System::SharedPtr<Annotation>, bool)Adds annotation to the collection. If page is rotated then annotation rectangle will be recalculated accordingly.
Add(const System::SharedPtr<Annotation>&) overrideAdds annotation to the collection.
Clear() overrideDeletes all annotations from the collection.
Contains(const System::SharedPtr<Annotation>&) const overrideChecks if specified annotation belong to collection.
CopyTo(System::ArrayPtr<System::SharedPtr<Annotation>>, int32_t) overrideCopies array of annotations into collection.
Delete(int32_t)Deletes annotation from the collection by index.
Delete()Deletes all annotations from the collection.
Delete(System::SharedPtr<Annotation>)Deletes specified annotation from the collection.
FindByName(System::String)Returns annotation by its name.
get_Count() const overrideGets count of annotations in collection.
get_IsReadOnly() const overrideGets a value indicating if collection is readonly.
get_IsSynchronized()Gets a value indicating whether access to the Aspose.Pdf.Annotations.AnnotationCollection is synchronized (thread safe).
get_SyncRoot() constGets an object that can be used to synchronize access to Aspose.Pdf.Annotations.AnnotationCollection.
GetEnumerator() overrideReturns collection enumerator.
idx_get(int32_t)The index of the element to get.
Remove(const System::SharedPtr<Annotation>&) overrideDeletes specified annotation from the collection.

See Also