Beispiel #1
0
        public override WzImageProperty DeepClone()
        {
            WzCanvasProperty clone = new WzCanvasProperty(name);

            foreach (WzImageProperty prop in properties)
            {
                clone.AddProperty(prop.DeepClone());
            }
            clone.imageProp = (WzPngProperty)imageProp.DeepClone();
            return(clone);
        }
Beispiel #2
0
        public override IWzImageProperty DeepClone()
        {
            WzCanvasProperty clone = (WzCanvasProperty)MemberwiseClone();

            clone.properties = new List <IWzImageProperty>();
            foreach (IWzImageProperty prop in properties)
            {
                clone.properties.Add(prop.DeepClone());
            }
            clone.imageProp = (WzPngProperty)imageProp.DeepClone();
            return(clone);
        }