1.多行下拉文本属性编辑器
1 [Editor("System.ComponentModel.Design.MultilineStringEditor,System.Design", typeof(UITypeEditor))] 2 public string TxtEditor 3 { 4 //... ... 5 }
2.色值选择属性编辑器
1 [Editor("System.ComponentModel.Design.ColorEditor,System.Design", typeof(UITypeEditor))] 2 public Color ColorEditor 3 { 4 //... ... 5 }
3.文件选择属性编辑器
1 [Editor(typeof(FileNameEditor), typeof(UITypeEditor))] 2 public string FileName 3 { 4 //... ... 5 }
4.目录选择属性编辑器
1 [Editor(typeof(FolderNameEditor), typeof(UITypeEditor))] 2 public string FolderNameEditor 3 { 4 //... ... 5 }
5.连接字符串属性编辑器
1 [Editor(typeof(System.Web.UI.Design.ConnectionStringEditor), typeof(UITypeEditor))] 2 public string ConnectionStringEditor 3 { 4 //... ... 5 }
6.表达式绑定集合属性编辑器
1 [Editor(typeof(System.Web.UI.Design.ExpressionsCollectionEditor),typeof(UITypeEditor))] 2 public string ExpressionsCollectionEditor 3 { 4 //... ... 5 }
7.用户控件对话框编辑器
1 [Editor(typeof(System.Web.UI.Design.UserControlFileEditor), typeof(UITypeEditor))] 2 public string UserControlFileEditor 3 { 4 //... ... 5 }