Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
What is this page about?
This page explains how to work with textboxes in documents.
In Aspose.Words, the TextBox class is used to specify how text is displayed inside a shape. It exposes a public property named Parent to get the parent shape for the text box so that the customer can find the linked Shape from the associated TextBox.
The TextBox class provides IsValidLinkTarget method in order to check whether the TextBox can be linked to the target Textbox.
The following code example shows how to check if the TextBox can be linked to the target Textbox:
There are several ways to display text in a shape. The TextBox can be the Head, Middle, or Tail of a sequence.
The following code example shows how to check if TextBox is a Head, Tail, or Middle of the sequence:
Using the BreakForwardLink method you can break the link to the next TextBox.
The following code example shows how to break a link for a TextBox:
Q: How can I verify whether one TextBox can be linked to another?
A: Use the TextBox.IsValidLinkTarget(TextBox target) method. It returns true if the current TextBox can be linked to the specified target TextBox, otherwise false.
Q: How do I determine the position of a TextBox within a linked sequence?
A: Call the TextBox.IsHead, TextBox.IsTail, or TextBox.IsMiddle properties. These boolean properties indicate whether the TextBox is the first, last, or a middle element in the linked chain.
Q: What method should I use to break a forward link from a TextBox?
A: Invoke TextBox.BreakForwardLink(). This removes the link from the current TextBox to the next one in the sequence, leaving the remaining chain intact.
Q: How can I obtain the Shape that contains a TextBox?
A: Access the TextBox.Parent property, which returns the Shape object that hosts the TextBox. This allows you to manipulate shape-level properties such as size, position, or formatting.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.