Esempio n. 1
0
        public object CloneObject()
        {
            LocationAnchor clone = new LocationAnchor();

            CloneProperties(clone);
            return(clone);
        }
Esempio n. 2
0
        private void CloneProperties(object aClone)
        {
            LocationAnchor newClone = ((LocationAnchor)(aClone));

            newClone.AnchorPositionX = AnchorPositionX;
            newClone.AnchorPositionY = AnchorPositionY;
            newClone.AnchorColor     = AnchorColor;
            newClone.AnchorSize      = AnchorSize;
        }