1、UITypeEditorEditStyle.None
不提供任何用户交互的界面
2、 UITypeEditorEditStyle.Modal
使用模式或者模式对话框进行交互,一般是form
重写UITypeEditor
public class LengthPropertyEditor : UITypeEditor
{
public override UITypeEditorEditStyle GetEditStyle(
本文探讨了如何在WinForm中使用GDI+自定义控件,并着重讲解了UITypeEditor的三种编辑样式:None、Modal和DropDown。通过实现UITypeEditor,可以为属性提供更丰富的用户交互体验,例如点击属性的省略号后弹出模式对话框或下拉菜单进行设置。
1、UITypeEditorEditStyle.None
不提供任何用户交互的界面
2、 UITypeEditorEditStyle.Modal
使用模式或者模式对话框进行交互,一般是form
重写UITypeEditor
public class LengthPropertyEditor : UITypeEditor
{
public override UITypeEditorEditStyle GetEditStyle(
1452
431

被折叠的 条评论
为什么被折叠?