PdfCollection Class
Represents a base non-generic class for all collection types that implement various PDF components in the GemBox.Pdf assembly.
public abstract class PdfCollection : PdfObject, IList, ICollection, IEnumerable
Public MustInherit Class PdfCollection
Inherits PdfObject
Implements IList, ICollection, IEnumerable
- Inheritance:
- PdfCollection
- Derived
Properties
Count
Gets the number of elements contained in the PdfCollection.
Property Value
The number of elements contained in the PdfCollection.
Methods
Clear()
Removes all elements from the PdfCollection.
Exceptions
The underlying PdfArray is read-only (IsReadOnly returns true).
RemoveAt(Int32)
Removes the element at the specified index of the PdfCollection.
Parameters
index
- Int32
The zero-based index of the element to remove.
Exceptions
The underlying PdfArray is read-only (IsReadOnly returns true).
- System.ArgumentOutOfRangeException
index
is less than 0 or index
is equal to or greater than Count.
Inherited Properties
Metadata | (Optional; PDF 1.4) A metadata stream containing metadata for the component. (Inherited from PdfObject) |