C# Desinger 忽略Property

reference:
https://stackoverflow.com/questions/2598733/how-do-i-get-the-winform-designer-to-totally-ignore-a-property-on-a-custom-contr

I think you can use [Browsable (false)] and [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]

The second attribute prevents the property from appearing in InitializeComponent

posted on 2021-12-17 10:49  norsd  阅读(7)  评论(0)    收藏  举报  来源

导航