Exchanges a shape in the diagram by another one.
Syntax
public void Replace(Shape previousShape, Shape newShape)
|
Description
Removes the previous shape and inserts the new shape at the same location. The new shape receives the position, the z-order and the layers of the previous shape.