Skip to content

PdfArray class

View as Markdown

Namespace: PdfNetStack.Objects
Assembly: PdfNetStack.dll
Package: PdfNetStack

A PDF array.

public sealed class PdfArray : PdfObject, IReadOnlyList<PdfObject>, IReadOnlyCollection<PdfObject>, IEnumerable<PdfObject>, IEnumerable

Inheritance

object ← PdfObject ← PdfArray

Implements

IReadOnlyList<PdfObject>, IReadOnlyCollection<PdfObject>, IEnumerable<PdfObject>, IEnumerable

Creates an empty array.

public PdfArray()

Number of items.

public int Count { get; }

int

The item at index. Items may be references; resolve them through the document.

public PdfObject this[int index] { get; set; }

PdfObject

Appends an item.

public void Add(PdfObject item)

item PdfObject

Removes every item.

public void Clear()

Returns an enumerator that iterates through the collection.

public IEnumerator<PdfObject> GetEnumerator()

IEnumerator<PdfObject>

An enumerator that can be used to iterate through the collection.

Inserts an item at index.

public void Insert(int index, PdfObject item)

index int

item PdfObject

Creates an array of the given items.

public static PdfArray Of(params PdfObject[] items)

items PdfObject[]

PdfArray

Creates an array of numbers.

public static PdfArray Of(params double[] numbers)

numbers double[]

PdfArray

Removes the item at index.

public void RemoveAt(int index)

index int