Add a description for a property

前端 未结 3 2103
轮回少年
轮回少年 2021-02-19 18:56

How do I add a text description for my property?

\"alt

My code :

private bool _Space         


        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-19 19:15

    (A bit late but maybe helpful to someone)

    Another option that you can use is:

    [Browsable(true)]
    

    If the Browsable is true, you can see the property in Property Window and when its false, no one could not change it via Property Window in designer. See more information about that.

提交回复
热议问题