Clone
Namespace: Digi21.DigiNG.Entities
Assembly: Digi21.DigiNG
Returns a read/write copy of the polygon. The copy does not belong to any drawing file.
public new Polygon Clone()
Return value
A Polygon with this polygon's outer boundary, a copy of each hole, codes, Color, Weight, FillColor and Deleted. Data copied and not copied are described in Entity.Clone.
Example
// polígono is a ReadOnlyPolygon read from a file.
var copia = polígono.Clone();
copia.Holes.Clear();