Creates a new Shape that is a clone (deep copy) of the current instance.

Namespace: DigitalRune.Geometry.Shapes
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.9.0.0 (1.9.3.9490)

Syntax

C#
public Shape Clone()
Visual Basic
Public Function Clone As Shape
Visual C++
public:
Shape^ Clone()

Return Value

A new Shape that is a clone (deep copy) of the current instance.

Remarks

Notes to Inheritors: The method Clone()()()() calls CreateInstanceCore()()()() which is responsible for creating a new instance of the Shape derived class and CloneCore(Shape) to create a copy of the current instance. Classes that derive from Shape need to implement CreateInstanceCore()()()() and CloneCore(Shape).

See Also