Class PdfArray
Namespace: AdCodicem.Pdf.Objects
Assembly: AdCodicem.Pdf.dll
Represents a PDF array.
public sealed class PdfArray : PdfObject, IReadOnlyList<PdfObject>, IReadOnlyCollection<PdfObject>, IEnumerable<PdfObject>, IEnumerable
Inheritance
Implements
IReadOnlyList<PdfObject>, IReadOnlyCollection<PdfObject>, IEnumerable<PdfObject>, IEnumerable
Inherited Members
PdfObject.Resolve(), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Extension Methods
PdfObjectExtensions.AsArray(PdfObject?), PdfObjectExtensions.AsBoolean(PdfObject?), PdfObjectExtensions.AsDictionary(PdfObject?), PdfObjectExtensions.AsInteger(PdfObject?), PdfObjectExtensions.AsName(PdfObject?), PdfObjectExtensions.AsNumber(PdfObject?), PdfObjectExtensions.AsStream(PdfObject?), PdfObjectExtensions.AsString(PdfObject?), PdfObjectExtensions.AsText(PdfObject?), PdfObjectExtensions.Resolved(PdfObject?)
Constructors
PdfArray()
Initializes an empty array.
public PdfArray()
PdfArray(int)
Initializes an empty array with room for capacity entries.
public PdfArray(int capacity)
Parameters
capacity int
PdfArray(IEnumerable<PdfObject>)
Initializes an array containing items.
public PdfArray(IEnumerable<PdfObject> items)
Parameters
items IEnumerable<PdfObject>
Properties
Count
Gets the number of elements in the collection.
public int Count { get; }
Property Value
this[int]
Gets the entry at index, without resolving indirect references.
public PdfObject this[int index] { get; }
Property Value
Methods
Add(PdfObject)
Appends an entry.
public void Add(PdfObject item)
Parameters
item PdfObject
Clear()
Removes every entry.
public void Clear()
GetEnumerator()
Returns a non-allocating enumerator over the entries.
public List<PdfObject>.Enumerator GetEnumerator()
Returns
Insert(int, PdfObject)
Inserts an entry at index.
public void Insert(int index, PdfObject item)
Parameters
index int
item PdfObject
RemoveAt(int)
Removes the entry at index.
public void RemoveAt(int index)
Parameters
index int
Resolved(int)
Gets the entry at index, following indirect references.
public PdfObject Resolved(int index)
Parameters
index int
Returns
Set(int, PdfObject)
Replaces the entry at index.
public void Set(int index, PdfObject item)
Parameters
index int
item PdfObject
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
A string that represents the current object.