Namespace: PdfSharp.Pdf
Represents a PDF array object.
public class PdfArray : PdfObject, System.ICloneable, System.Collections.Generic.IEnumerable`1[[PdfSharp.Pdf.PdfItem, PdfSharp, Version=0.1.3.0, Culture=neutral, PublicKeyToken=null]], System.Collections.IEnumerable
Inheritance Object → PdfItem → PdfObject → PdfArray
Implements ICloneable, IEnumerable<PdfItem>, IEnumerable
Gets the collection containing the elements of this object.
public ArrayElements Elements { get; }
Gets the PdfDocument this object belongs to.
public PdfDocument Owner { get; }
Indicates whether the object is an indirect object.
public bool IsIndirect { get; }
Gets the PdfInternals object of this document, that grants access to some internal structures which are not part of the public interface of PdfDocument.
public PdfObjectInternals Internals { get; }
Gets the indirect reference of this object. If the value is null, this object is a direct object.
public PdfReference Reference { get; internal set; }
Gets the indirect reference of this object. Throws if it is null.
public PdfReference ReferenceNotNull { get; }
InvalidOperationException
The indirect reference must be not null here.
Initializes a new instance of the PdfArray class.
public PdfArray()
Initializes a new instance of the PdfArray class.
public PdfArray(PdfDocument document)
document
PdfDocument
The document.
Initializes a new instance of the PdfArray class.
public PdfArray(PdfDocument document, PdfItem[] items)
document
PdfDocument
The document.
items
PdfItem[]
The items.
Creates a copy of this array. Direct elements are deep copied. Indirect references are not modified.
public PdfArray Clone()
Implements the copy mechanism.
protected object Copy()
Returns an enumerator that iterates through a collection.
public IEnumerator<PdfItem> GetEnumerator()
Returns a string with the content of this object in a readable form. Useful for debugging purposes only.
public string ToString()
internal void WriteObject(PdfWriter writer)
writer
PdfWriter