Click or drag to resize

PdfArrayCreateT(IEnumerableT) Method

Creates a new instance of the PdfArray class that contains PdfBasicObjects copied from the specified collection and has sufficient capacity to accommodate the number of PdfBasicObjects copied.

Namespace: SautinSoft.Pdf.Objects
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2025.3.13
Syntax
public static PdfArray Create<T>(
	IEnumerable<T> collection
)
where T : PdfBasicObject

Parameters

collection  IEnumerableT
The collection whose PdfBasicObjects are copied to the new array.

Type Parameters

T
The type of PdfBasicObjects in the collection.

Return Value

PdfArray
A new instance of the PdfArray class that contains PdfBasicObjects copied from the specified collection.
Exceptions
ExceptionCondition
ArgumentNullExceptioncollection is or one of the collection's element is .
ArgumentExceptionOne of the collection's element is already contained in some other PdfBasicObject or is PdfStream or is the current PdfArray.
See Also