0

我想做一个具有字体等属性的类,该类将具有其他属性,例如名称、大小、单位、粗体。我尝试了一个解决方案,但它对我不起作用。(http://stackoverflow.com /questions/755391/group-properties-in-a-custom-control)有人可以帮忙吗?任何帮助将不胜感激。

<TypeConverter(GetType(ExpandableObjectConverter))> _
Class TestingClass
'Some property here
End Class 
4

1 回答 1

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
于 2012-04-10T21:21:48.610 回答