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:
- System.ObjectPdfCollection
- Derived
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
Properties
Count
Gets the number of elements contained in the PdfCollection.
Property Value
- System.Int32
The number of elements contained in the PdfCollection.
Methods
Clear()
Removes all elements from the PdfCollection.
Exceptions
- System.InvalidOperationException
The underlying PdfArray is read-only (IsReadOnly returns true).
RemoveAt(Int32)
Removes the element at the specified index of the PdfCollection.
Parameters
index
- System.Int32
The zero-based index of the element to remove.
Exceptions
- System.InvalidOperationException
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) |
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable