为什么usercontrol添加属性?属性窗口不显示自定义属性

时间:2020-03-20 03:32:31

标签: c#

私有字符串strTxt;

    [Browsable(true)]
    public string ButtonName
    {
        get
        {
            //TODO
            return strTxt;
        }
        set
        {
            //TODO
            strTxt = value;
        }
    }

属性窗口不显示自定义属性,为什么?

0 个答案:

没有答案