• 控件属性


    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 }
  • 相关阅读:
    scala学习笔记(8)
    mysql复习(1)基本CRUD操作
    sql获得表主键信息
    C#缓存-依赖 CacheHelper
    MVC过滤器实现用户登录验证
    MVC过滤器
    MVC页面和表单
    在ASP.NET中基于Owin OAuth使用Client Credentials Grant授权发放Token
    MVC DbContext
    MVC数据注解
  • 原文地址:https://www.cnblogs.com/zhuhc/p/2873136.html
Copyright © 2020-2023  润新知