Click or drag to resize

PdfArrayCreateT Method (IEnumerableT)

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:  GemBox.Pdf.Objects
Assembly:  GemBox.Pdf (in GemBox.Pdf.dll) Version: 13.0.35.1000
Syntax
public static PdfArray Create<T>(
	IEnumerable<T> collection
)
where T : PdfBasicObject

Parameters

collection
Type: System.Collections.GenericIEnumerableT
The collection whose PdfBasicObjects are copied to the new array.

Type Parameters

T
The type of PdfBasicObjects in the collection.

Return Value

Type: 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