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.ObjectsAssembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2024.8.8
Syntax public static PdfArray Create<T>(
params T[] collection
)
where T : PdfBasicObject
Public Shared Function Create(Of T As PdfBasicObject) (
ParamArray collection As T()
) As PdfArray
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 Exception | Condition |
---|
ArgumentNullException | collection is or one of the collection's element is . |
ArgumentException | One of the collection's element is already contained in some
other PdfBasicObject or is PdfStream or is the current
PdfArray. |
See Also