Пример #1
0
        public Area Clone()
        {
            Area clone = new Area((Shape2)_shape.Clone(), _behavior);

            clone.Name               = _name;
            clone.Text               = _text;
            clone.TextFont           = _textFont;
            clone.TextPosition       = (Vector2)_textPosition.Clone();
            clone.TextColor          = _textColor;
            clone.RealType           = _type;
            clone.AreaColor          = _areaColor;
            clone.Behavior           = _behavior;
            clone.Description        = _description;
            clone.MetaData           = _metaData;
            clone.ImgPath            = _imgPath;
            clone.ImgScaling         = (Vector2)_imgScaling.Clone();
            clone.ImgPosition        = (Vector2)_imgPosition.Clone();
            clone.ImgIsBackground    = _imgIsBackground;
            clone.IsActive           = _isActive;
            clone.IsVisible          = _isVisible;
            clone.MinX               = _minX;
            clone.ValueSuggestedMaxX = _maxSuggestedX;
            clone.ValueSuggestedMaxY = _maxSuggestedY;
            clone.MaxX               = _maxX;
            clone.MinY               = _minY;
            clone.MaxY               = _maxY;
            clone.XParam             = _xParam;
            clone.YParam             = _yParam;
            clone.XMultiply          = _xMultiply;
            clone.YMultiply          = _yMultiply;
            clone.XYSymmetryMode     = _xYSymmetryMode;

            return(clone);
        }