以这种方式封装后,开发人员的工作就变成从工具箱上拖一个组件或控件放到窗体上,经由过程诸如属性浏览器(Property Browser)这样的设计期特征来配置它,然后让Windows Forms设计器帮我们将这些配置转换为代码,这些代码会出此刻InitializeComponent方法中。
基于302个网页-相关网页
当属性可以使用类型转换器时,它显示在设计器的属性浏览器中。
When a type converter is available for a property, it can be displayed in the property browser in the designer.
如果您定义自定义属性并想让属性浏览器显示它们,则必须实现自定义类型转换器。
If you define custom properties and want the property browser to display them, you must implement custom type converters.
因为属性浏览器中的所有属性都是只读的,因此要修改属性,必须在编辑器中打开元素并从那里进行更新。
To modify the property, open the element in the editor and update from there, because all of the properties in the property browser are read-only.
应用推荐