zoukankan      html  css  js  c++  java
  • 自定义控件

    ------------------------------

    public partial class UserControl1 : UserControl
        {

    [DefaultValue(typeof(string), "Init 标签"), Category("属性标签"), Description("设置文本的标签.")]
            public string SealLabelText
            {
                get
                {
                    return label1.Text;
                }
                set
                {
                    label1.Text = value;
                    this.Invalidate();
                }
            }
            [DefaultValue(typeof(string), "文本内容"), Category("内容字段"), Description("设置值.")]
            public string SealTextContent
            {
                get
                {
                    return textBox1.Text;
                }
                set
                {
                    textBox1.Text = value;
                    this.Invalidate();
                }
            }

    }

    -------------------公布公共的属性-------------------- 复合控件

  • 相关阅读:
    Git/GitHub使用技巧
    《暗时间》第一遍读书心得整理
    学习方法摘要总结
    Py爬虫项目
    2018年6月12日
    狐狸坑蛋糕
    Codeforces 371C Hanburgers
    【别忘咯】 关于运算优先级
    【noip 2009】 乌龟棋 记忆化搜索&动规
    【Openjudge】 算24
  • 原文地址:https://www.cnblogs.com/szlixin/p/3368076.html
Copyright © 2011-2022 走看看