Set the margin for text in the shape

Refer to the following example code to see how to set the margin for text in the shape.