コード例 #1
0
        protected override Drawing DoEdit(Drawing drawing, IEnumerable <Entity> entities, Vector delta)
        {
            foreach (var ent in entities)
            {
                drawing = drawing.Replace(ent, EditUtilities.Move(ent, delta));
            }

            return(drawing);
        }
コード例 #2
0
        protected override Drawing DoEdit(Drawing drawing, IEnumerable <Entity> entities, Vector delta)
        {
            foreach (var ent in entities)
            {
                var layer = drawing.ContainingLayer(ent);
                drawing = drawing.Add(layer, EditUtilities.Move(ent, delta));
            }

            return(drawing);
        }