我可以选择放置事件功能的地方吗? [英] can i choose the place were to put the event function?

查看:61
本文介绍了我可以选择放置事件功能的地方吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常在生成事件时,函数会自动将函数本身放在代码的末尾

是否有选项可以选择拉出函数事件的位置?

Usually when producing events function automatically places the the function itself at the end of the code
Is there an option to choose a place where you pull up function events?

推荐答案

您可以在任何想要放置它们的地方选择/拖动它们,甚至可以将它们放在其他类或其他文件中(虽然我不推荐它)。



如果你在谈论默认操作,那么我不这么认为,编辑器总是将新的自动生成的代码放在类的底部。
You can select/drag them anywhere you want to put them, there are even ways to put them in other classes or other files (although I wouldn't recommend it).

If you are talking about the default action, then I don't think so, the editor always places new auto generated code at the bottom of the class.


这篇关于我可以选择放置事件功能的地方吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆