---
title: "עבודה עם TextBoxs Python"
---


In In In Aspose.Words, [TextBox](https://reference.aspose.com/words/python-net/aspose.words.drawing/textbox/) הכיתה משמשת כדי לציין כיצד טקסט מוצג בתוך צורה. הוא מספק נכס ציבורי בשם [parent](https://reference.aspose.com/words/python-net/aspose.words.drawing/textbox/parent/) כדי לקבל את צורת ההורה עבור תיבת הטקסט כדי לאפשר ללקוח למצוא מקושר [Shape](https://reference.aspose.com/words/python-net/aspose.words.drawing/shape/) מקושר [TextBox](https://reference.aspose.com/words/python-net/aspose.words.drawing/textbox/).

## יצירת קישור

[TextBox](https://reference.aspose.com/words/python-net/aspose.words.drawing/textbox/) מעמד מספק [is_valid_link_target](https://reference.aspose.com/words/python-net/aspose.words.drawing/textbox/is_valid_link_target/) שיטה כדי לבדוק אם [TextBox](https://reference.aspose.com/words/python-net/aspose.words.drawing/textbox/) ניתן לקשר לתיבת טקסט המטרה.

הדוגמה הבאה מראה כיצד לבדוק אם `TextBox` ניתן לקשר לתיבת טקסט היעד:

{{< gist "aspose-words-gists" "e9d8f984dac599756ccb4a64b8c79768" "Examples-DocsExamples-DocsExamples-Programming with Documents-working_with_textboxes-CreateALink.py" >}}

## בדוק טקסט Box Sequence

ישנן מספר דרכים להציג טקסט בצורה. The The The [text_box](https://reference.aspose.com/words/python-net/aspose.words.drawing/shape/text_box/) יכול להיות ראש, ביניים או Tail של רצף.

דוגמה לקוד הבא מראה כיצד לבדוק אם **TextBox** הוא ראש, Tail או Middle of theרצף:

{{< gist "aspose-words-gists" "e9d8f984dac599756ccb4a64b8c79768" "Examples-DocsExamples-DocsExamples-Programming with Documents-working_with_textboxes-CheckSequence.py" >}}

## שוברים קישור

באמצעות [text_box](https://reference.aspose.com/words/python-net/aspose.words.drawing/shape/text_box/) שיטה שאתה יכול לשבור את הקישור הבא **TextBox**.

דוגמה לקוד הבא מראה כיצד לשבור קישור **TextBox**:

{{< gist "aspose-words-gists" "e9d8f984dac599756ccb4a64b8c79768" "Examples-DocsExamples-DocsExamples-Programming with Documents-working_with_textboxes-BreakALink.py" >}}
