PdfDictionary.KeyCollection Class
Represents the collection of keys in a PdfDictionary.
public sealed class KeyCollection : ICollection<PdfName>, IEnumerable<PdfName>, ICollection, IEnumerable
Public NotInheritable Class KeyCollection
Implements ICollection(Of PdfName), IEnumerable(Of PdfName), ICollection, IEnumerable
- Inheritance:
- PdfDictionary.KeyCollection
Properties
Count
Gets the number of PdfNames contained in the PdfDictionary.KeyCollection.
Property Value
The number of PdfNames contained in the PdfDictionary.KeyCollection
Methods
CopyTo(PdfName[], Int32)
Copies the PdfDictionary.KeyCollection elements to an existing one-dimensional 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 Array that is the destination of the PdfNames copied from PdfDictionary.KeyCollection. The Array must have zero-based indexing.
arrayIndex
- Int32
The zero-based index in array
at which copying begins.
Exceptions
array
is null.
arrayIndex
is less than zero.
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