Click or drag to resize

PdfArrayCreateT(T) 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: 2024.8.8
Syntax
public static PdfArray Create<T>(
	params T[] collection
)
where T : PdfBasicObject

Parameters

collection  T
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