Border color?

Can you set the border color of a shape in code? If I use the background property, it changes the background and the border… Is there a way to change either just the fill and/or the border separately?