Click or drag to resize

PdfArrayInsert Method

Inserts a PdfBasicObject into the PdfArray at the specified index.

Namespace:  GemBox.Pdf.Objects
Assembly:  GemBox.Pdf (in GemBox.Pdf.dll) Version: 10.0.35.1001
Syntax
public void Insert(
	int index,
	PdfBasicObject item
)

Parameters

index
Type: SystemInt32
The zero-based index at which item should be inserted.
item
Type: GemBox.Pdf.ObjectsPdfBasicObject
The PdfBasicObject to insert. The value cannot be . Use Null value instead.

Implements

IListTInsert(Int32, T)
Exceptions
ExceptionCondition
InvalidOperationExceptionThe current PdfArray is read-only (IsReadOnly returns ).
ArgumentOutOfRangeExceptionindex is less than 0 or index is greater than Count.
ArgumentNullExceptionitem is .
ArgumentExceptionitem is already contained in some other PdfBasicObject or is PdfStream or is the current PdfArray.
See Also