PdfArray class
Namespace: PdfNetStack.Objects
Assembly: PdfNetStack.dll
Package: PdfNetStack
A PDF array.
public sealed class PdfArray : PdfObject, IReadOnlyList<PdfObject>, IReadOnlyCollection<PdfObject>, IEnumerable<PdfObject>, IEnumerableInheritance
Implements
IReadOnlyList<PdfObject>, IReadOnlyCollection<PdfObject>, IEnumerable<PdfObject>, IEnumerable
Constructors
Section titled “Constructors”PdfArray()
Section titled “ PdfArray()”Creates an empty array.
public PdfArray()Properties
Section titled “Properties”Number of items.
public int Count { get; }Property Value
Section titled “Property Value”this[int]
Section titled “ this[int]”The item at index. Items may be references; resolve them through the document.
public PdfObject this[int index] { get; set; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Add(PdfObject)
Section titled “ Add(PdfObject)”Appends an item.
public void Add(PdfObject item)Parameters
Section titled “Parameters”item PdfObject
Clear()
Section titled “ Clear()”Removes every item.
public void Clear()GetEnumerator()
Section titled “ GetEnumerator()”Returns an enumerator that iterates through the collection.
public IEnumerator<PdfObject> GetEnumerator()Returns
Section titled “Returns”An enumerator that can be used to iterate through the collection.
Insert(int, PdfObject)
Section titled “ Insert(int, PdfObject)”Inserts an item at index.
public void Insert(int index, PdfObject item)Parameters
Section titled “Parameters”index int
item PdfObject
Of(params PdfObject[])
Section titled “ Of(params PdfObject[])”Creates an array of the given items.
public static PdfArray Of(params PdfObject[] items)Parameters
Section titled “Parameters”items PdfObject[]
Returns
Section titled “Returns”Of(params double[])
Section titled “ Of(params double[])”Creates an array of numbers.
public static PdfArray Of(params double[] numbers)Parameters
Section titled “Parameters”numbers double[]
Returns
Section titled “Returns”RemoveAt(int)
Section titled “ RemoveAt(int)”Removes the item at index.
public void RemoveAt(int index)Parameters
Section titled “Parameters”index int