How to set the display style in the program?

In the view attributes, we can set the display style(such as "smooth", "wire frame", "hidden line", "filled hidden line", etc).

How can I set these styles in the program? Thanks.