[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IShape.Duplicate

Duplicate Method

Duplicate()

Duplicates the shape and returns a reference to the new copy.

Declaration
IShape Duplicate()
Function Duplicate() As IShape
Returns
Type Description
IShape

A reference to the duplicated shape.

Examples
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";