Click or drag to resize

PdfArrayInsert Method

Inserts a PdfBasicObject into the PdfArray at the specified index.

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

Parameters

index  Int32
The zero-based index at which item should be inserted.
item  PdfBasicObject
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