[csharp]
class TestComponent2 : System.Windows.Forms.DateTimePicker
{
[TypeConverter(typeof(ExpandableObjectConverter))]
public class Test
{
private int _A, _B;
[Description("屬性B")]
public int B
{
get { return _B; }
set { _B = value; }
}
[Description("屬性A")]
public int A
{
get { return _A; }
set { _A = value; }
}
public override string ToString()
{
return _A+","+_B;
}
}
private Test _Test;
[Description("自定義控件,裡面含有結構體(類)"),Category("MyCategory")]
public Test TestProperty
{
get { return _Test; }
set { _Test = value; }
}
}