API Documentation > CorelDRAW > 2025-v26 > Shape > IVGShape
Shape.CreateEnvelopeFromShape method
Creates an envelope effect by using the specified shape as a template
Syntax:
Function CreateEnvelopeFromShape(ByVal Source As Shape, 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 True, the envelope keeps its lines straight.
CopyMode
Specifies the copy mode, and returns {cdrEnvelopeCopyMode|cdrEnvelopeCopyMode.
CornerIndices
Variant
Remarks:
The CreateEnvelopeFromShape method creates an envelope by using the specified shape as a template.