PdfDictionary.KeyCollection Class
Represents the collection of keys in a PdfDictionary.
public sealed class KeyCollection : ICollection<PdfName>, ICollection, IReadOnlyCollection<PdfName>, IEnumerable<PdfName>, IEnumerablePublic NotInheritable Class KeyCollection
Implements ICollection(Of PdfName), ICollection, IReadOnlyCollection(Of PdfName), IEnumerable(Of PdfName), IEnumerable- Inheritance:
- System.ObjectPdfDictionary.KeyCollection
Implements
Properties
Count
Gets the number of PdfNames contained in the PdfDictionary.KeyCollection.
Property Value
- System.Int32
The number of PdfNames contained in the PdfDictionary.KeyCollection
Methods
CopyTo(PdfName[], Int32)
Copies the PdfDictionary.KeyCollection elements to an existing one-dimensional System.Array, starting at the specified array index.
public void CopyTo(PdfName[] array, int arrayIndex)Public Sub CopyTo(array As PdfName(), arrayIndex As Integer)Parameters
array- PdfName[]
The one-dimensional System.Array that is the destination of the PdfNames copied from PdfDictionary.KeyCollection. The System.Array must have zero-based indexing.
arrayIndex- System.Int32
The zero-based index in array at which copying begins.
Exceptions
- System.ArgumentNullException
array is null.
- System.ArgumentOutOfRangeException
arrayIndex is less than zero.
- System.ArgumentException
The number of elements in the source PdfDictionary.KeyCollection is greater than the available space from arrayIndex to the end of the destination array.
GetEnumerator()
Returns an enumerator that iterates through the PdfDictionary.KeyCollection.
public PdfDictionary.KeyCollection.Enumerator GetEnumerator()Public Function GetEnumerator As PdfDictionary.KeyCollection.Enumerator