如何在Visual Studio的设计编辑器中显示自定义属性?
当设置为true时,它具有可浏览选项,是不是?
它没有在编辑器中显示......我跟随https://msdn.microsoft.com/es-es/library/system.componentmodel.browsableattribute(v=vs.110).aspx
一段代码:
Public Class ButtonWithBrigthness 'It inherits from Button in .Designer.vb
Private _brigthness As Integer
<Browsable(True)>
Public Property Brightness() As Integer
Get
Return _brigthness
End Get
Set (value as Integer)
_brigthness = value
End Set
End Property
End Class