API Documentation > CorelDRAW > 2025-v26 > Shape > IVGShape
Shape.CreateDocumentFrom method
Creates a copy of a document containing the shape
Syntax:
Function CreateDocumentFrom(Optional ByVal TemporaryDocument As Boolean = False) As Document
Parameters:
Name Type Description
TemporaryDocument
Boolean
Specifies whether the document is temporary. The default for this Boolean value is False.
Remarks:
The CreateDocumentFrom method creates a copy of the document that contains a shape.