Click or drag to resize

PdfArrayRemove Method

Removes the first occurrence of a specific PdfBasicObject from the PdfArray.

Namespace: SautinSoft.Pdf.Objects
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2025.3.13
Syntax
public bool Remove(
	PdfBasicObject item
)

Parameters

item  PdfBasicObject
The PdfBasicObject to remove from the PdfArray.

Return Value

Boolean
if item is successfully removed; otherwise, . This method also returns if item was not found in the PdfArray.

Implements

ICollectionTRemove(T)
Exceptions
ExceptionCondition
InvalidOperationExceptionThe current PdfArray is read-only (IsReadOnly returns ).
See Also