Click or drag to resize

PdfArrayAdd Method

Adds a PdfBasicObject to the end of the PdfArray.

Namespace:  GemBox.Pdf.Objects
Assembly:  GemBox.Pdf (in GemBox.Pdf.dll) Version: 10.0.35.1001
Syntax
public void Add(
	PdfBasicObject item
)

Parameters

item
Type: GemBox.Pdf.ObjectsPdfBasicObject
The PdfBasicObject to be added to the end of the PdfArray. The value cannot be . Use Null value instead.

Implements

ICollectionTAdd(T)
Exceptions
ExceptionCondition
InvalidOperationExceptionThe current PdfArray is read-only (IsReadOnly returns ).
ArgumentNullExceptionitem is .
ArgumentExceptionitem is already contained in some other PdfBasicObject or is PdfStream or is the current PdfArray.
See Also