[]
Duplicates the shape and returns a reference to the new copy.
IShape Duplicate()
Function Duplicate() As IShape
| Type | Description |
|---|---|
| IShape | A reference to the duplicated shape. |
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 120, 60);
shape.TextFrame.TextRange.Text = "Hello";
IShape copiedShape = shape.Duplicate();
copiedShape.TextFrame.TextRange.Text = "Hello Copy";