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
浙公网安备 33010602011771号