API Documentation > CorelDRAW > 2025-v26 > Document > IVGDocument
Document.CreateCurveFromArray method
Creates an instance of a Curve object bound to the document by using the node information specified
Syntax:
Function CreateCurveFromArray(ByRef Source() As CurveElement, Optional ByVal NumElements As Long = -1) As Curve
Parameters:
Name Type Description
Source
NumElements
Long
Specifies the number of valid curve elements to use. If nothing is specified, then all valid curve elements are used.
Remarks:
The CreateCurveFromArray method uses the node information specified to create an instance of a Curve object that is bound to the document.