public void MoveBy(int x, int y) { Begin = Begin.MovedBy(x, y); End = End.MovedBy(x, y); }
public IDiagram MovedBy(int x, int y) { return(new Line(Begin.MovedBy(x, y), End.MovedBy(x, y))); }