Can one loop through an enumeration in code? Or write something to get a random member of the enumeration?

For instance. I'm testing this treeview control. Got many borderstyles. So just want to add a button and when i click it, set the borderstyle to anoter on in the Borderstyle enumeration