Exemple #1
0
        /// <summary>
        /// Overrides IGeoObjectImpl.<see cref="IGeoObjectImpl.Clone"/> and implements IGeoObject.<see cref="IGeoObject.Clone"/>.
        /// </summary>
        /// <returns>see <see cref="IGeoObject.Clone"/></returns>
        public override IGeoObject Clone()
        {
            if (needsRecalc)
            {
                Recalc();
            }
            Hatch res = Construct();

            res.CopyAttributes(this); // am Anfang, damit nicht neu berechnet wird
            res.compoundShape = compoundShape.Clone();
            res.hatchStyle    = hatchStyle;
            res.Plane         = plane;
            if (base.Count > 0)
            {
                res.ReplaceContent(base.containedObjects.CloneObjects());
            }
            return(res);
        }