API Documentation > CorelDRAW > 2025-v26 > Shape > IVGShape
Shape.ReplaceWith method
Logs a shape replacement transaction so that it can be undone by the user
Syntax:
Sub ReplaceWith(ByVal VirtualShape As Shape)
Parameters:
Name Type Description
VirtualShape
Remarks:
The ReplaceWith method logs a shape-replacement transaction that can be undone if desired.