Set alignment of shape's text

Refer to the following example code to see how to set the horizontal and vertical alignment of the shape's text in Document Solutions for Excel.