我想做一个具有font等属性的类,它将具有其他属性,例如名称,大小,单位,粗体。我试过一个解决方案,但它对我不起作用。(http:// stackoverflow.com/questions/755391/group-properties-in-a-custom-control) 有人可以帮忙吗?任何帮助将不胜感激。
<TypeConverter(GetType(ExpandableObjectConverter))> _
Class TestingClass
'Some property here
End Class
答案 0 :(得分:0)
Public Class Font
Public Property Name As String
Public Property Unit As Integer
Public Property Bold As Boolean
End Class
Public Class TestingClass
Public Property TestFont As New Font()
End Class