End Google Ads 201810 - BS.net 01 --> Dear Community

I have written several control-related classes (eg, Symbol, Curve) that store drawing-related information such as line colour, dash style, line thickness, &c in a System.Drawing.Pen property. It is very convenient in code, but in the designer property grid it does not expand and is greyed out.

I have carried out some research and found what is to be done when it is a custom class I want to expand in the property grid ( http://msdn.microsoft.com/en-us/library/aa302326.aspx[^] ), but it is of no help to me as what I use is a built-in type, not my own class.

First of all, do you think it is worth some further ado, or is what I do (simply exposing the System.Drawing.Pen with which I draw the object) considered bad practice?

If it is bad practice, what would you suggest as an elegant solution?

If it is not, how can I make it expand properly in the property grid and be editable?

Thank you very much for your assistance.

Yours faithfully
Tethered Sun