It is not hard to do. Check the tooltips, try it out by yourself. It took me a few minutes to find out by myself. Why do you do not any single pieces of investigation by yourself?
Or just USE the forumsearch. There are examples using a Polygon. Why you did not searched them first?