Working with TextBoxes

In Aspose.Words, TextBox class is used to specify how a text is displayed inside a shape. It provides a public property named as parent to get the parent shape for the text box to allow customer to find linked Shape from linked TextBox.

TextBox class provides is_valid_link_target method in order to check whether the TextBox can be linked to the target Textbox as shown in the code snippet given below:

Check TextBox Sequence

The following code snippets shows how to check if Shape.text_box is a Head, a Tail or a Middle of the sequence:

The following code snippet shows how to break a link for a Shape.text_box: