[System.ComponentModel.DesignerCategory("Code")]的含义
2006-12-01 15:52
519 查看
在很多类前面都看到[System.ComponentModel.DesignerCategory("Code")]这么一句话,不知道作用是什么,查查csdn,虽然有,但可能是理解能力低,没有看懂什么意思,最后只能搜一下英文的网站,发现老外说事情比较浅显,通俗易懂呀!!!!
For those of you who like certain control classes to open in the code view (instead of the designer view) by default. You can use the following attribute on your class so when you double click on it you get the code view.
[System.ComponentModel.DesignerCategory("Code")]
I know this has been a nicety that I now use often.
说白了就是在解决方案中双击一个.cs文件,以“代码”而不是以“设计器”打开这个文件。
For those of you who like certain control classes to open in the code view (instead of the designer view) by default. You can use the following attribute on your class so when you double click on it you get the code view.
[System.ComponentModel.DesignerCategory("Code")]
I know this has been a nicety that I now use often.
说白了就是在解决方案中双击一个.cs文件,以“代码”而不是以“设计器”打开这个文件。
相关文章推荐
- 无法打开workflow的设计界面--缺'System.Workflow.ComponentModel.Compiler.ITypeProvider'
- StarUML启动时候出现"System Error. Code:1722. RPC服务器不可用."错误的解决办法
- "System.ComponentModel.IComponent”在未被引用的程序集中定义
- 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)
- StarUML 启动时候出现"System Error. Code:1722. RPC服务器不可用."
- StarUML 启动时候出现"System Error. Code:1722. RPC服务器不可用."错误的解决办法
- 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)
- 关于"ComponentDesigner.dcu"
- 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)
- StarUML启动时候出现"System Error. Code:1722. RPC服务器不可用."错误的解
- Job for nginx.service failed because the control process exited with error code. See "systemctl stat
- error LNK2001: 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_
- Android中binderDied()以及"Unknown binder error code" 出现的原因说明
- IBM特别开发出一套全新的企业模型--"组件化商业模式(Component Business Model,CBM)"
- linux shell 中"2>&1"含义
- System.getProperty("user.dir"); 获得系统属性
- System.ComponentModel.DataAnnotations.Schema.TableAttribute 同时存在于EntityFramework.dll和System.Componen
- VS EF Error: Configuration Error extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider"
- 使用Parse内付费服务出现的Error Domain=Parse Code=146 "The operation couldn’t be completed. (Parse error 146.)
- Avoid Using The “system("pause")” !