如何让自定义控件的属性的说明文本出现在“属性”编辑器的下方?
使用System.ComponentModel.DescriptionAttribute。
例:
<Description("获取或设置网格中奇数行的颜色"), Category("颜色")> _
Public Property AlternatingBackColor() As Color
Get
Return Me.DataGrid.AlternatingBackColor
End Get
Set(ByVal Value As Color)
Me.DataGrid.AlternatingBackColor = Value
End Set
End Property