Because properties available vary with the type of control this is not as straighforward as one might think. If you limit yourself to just a few types, and obtain references dynamically from a front panel -> controls reference list, and use the To more specific class function to get access to the right properties it can be done without that much work...to make a more general tool is demanding though.
However - if that's your ultimate goal - in the last LTR issue a property saver toolkit by Konstantin Shifershteyn is discussed, and the toolkit is available on the web, check it out at:
http://www.kshif.com/lv/index.html