Clone

Namespace: Digi21.DigiNG.Entities
Assembly: Digi21.DigiNG

Returns a read/write copy of the complex. The copy does not belong to any drawing file.

public new Complex Clone()

Return value

A Complex with a copy of each contained entity, and this complex's codes, Color, Weight, FillColor and Deleted. Data copied and not copied are described in Entity.Clone.

Example

// complejo is a ReadOnlyComplex read from a file.
var copia = complejo.Clone();
if (copia.Entities.Count > 0)
    copia.Entities.RemoveAt(0);