If you're not sure if a particular property can be set programmatically you should bring up the help topic for the property by highlighting the property in the property palette and pressing F1.
The help topic will tell you if you can and what built-in to use.