Set shape formula

Refer to the following example code to see how to set formula of the shape to refer text.