API Documentation > CorelDRAW > 2025-v26 > Shape > IVGShape
Shape.CreateEnvelopeFromCurve method
Creates an envelope effect by using the specified curve as a template
Syntax:
Function CreateEnvelopeFromCurve(ByVal Source As Curve, Optional ByVal Mode As cdrEnvelopeMode = cdrEnvelopePutty, Optional ByVal KeepLines As Boolean = False, Optional ByVal CopyMode As cdrEnvelopeCopyMode = cdrEnvelopeCenter, Optional ByVal CornerIndices As Variant) As Effect
Parameters:
Name Type Description
Source
Mode
Specifies the type of mapping mode for the envelope, and returns cdrEnvelopeMode.
KeepLines
Boolean
Specifies whether the envelope keeps its lines straight or converts them to curves. If the KeepLines property is set to True, the envelope keeps its lines straight.
CopyMode
Specifies the copy mode, and returns {cdrEnvelopeCopyMode|cdrEnvelopeCopyMode.
CornerIndices
Variant
Remarks:
The CreateEnvelopeFromCurve method creates an envelope by using the specified curve as a template.