# GrapeCity.Documents.Word.Shape.AddLinkedTextFrame

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_Shape_AddLinkedTextFrame_" data-uid="GrapeCity.Documents.Word.Shape.AddLinkedTextFrame*">AddLinkedTextFrame Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_Shape_AddLinkedTextFrame_" data-uid="GrapeCity.Documents.Word.Shape.AddLinkedTextFrame*"></a>
<h4 id="GrapeCity_Documents_Word_Shape_AddLinkedTextFrame_GrapeCity_Documents_Word_TextFrame_" data-uid="GrapeCity.Documents.Word.Shape.AddLinkedTextFrame(GrapeCity.Documents.Word.TextFrame)">AddLinkedTextFrame(TextFrame)</h4>
<div class="markdown level1 summary"><p>Adds a linked text frame that participates in a text frame story.</p>
<p>Note that some geometries do not allow text frames (see <a class="xref" href="GrapeCity.Documents.Word.Extensions.TextFrameSupported.html#GrapeCity_Documents_Word_Extensions_TextFrameSupported_GrapeCity_Documents_Word_GeometryType_">TextFrameSupported(GeometryType)</a>).
If <a class="xref" href="GrapeCity.Documents.Word.Shape.GeometryType.html#GrapeCity_Documents_Word_Shape_GeometryType">GeometryType</a> of this shape does not support text frames, an exception will be thrown.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public LinkedTextFrame AddLinkedTextFrame(TextFrame linkTo)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddLinkedTextFrame(linkTo As TextFrame) As LinkedTextFrame</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.TextFrame.html">TextFrame</a></td>
      <td><span class="parametername">linkTo</span></td>
      <td><p>The main text frame that starts the text frame story.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.LinkedTextFrame.html">LinkedTextFrame</a></td>
      <td><p>The added <a class="xref" href="GrapeCity.Documents.Word.Shape.LinkedTextFrame.html#GrapeCity_Documents_Word_Shape_LinkedTextFrame">LinkedTextFrame</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_Shape_AddLinkedTextFrame_" data-uid="GrapeCity.Documents.Word.Shape.AddLinkedTextFrame*"></a>
<h4 id="GrapeCity_Documents_Word_Shape_AddLinkedTextFrame_GrapeCity_Documents_Word_TextFrame_System_Int32_" data-uid="GrapeCity.Documents.Word.Shape.AddLinkedTextFrame(GrapeCity.Documents.Word.TextFrame,System.Int32)">AddLinkedTextFrame(TextFrame, int)</h4>
<div class="markdown level1 summary"><p>Adds a linked text frame that participates in a text frame story.</p>
<p>Note that some geometries do not allow text frames (see <a class="xref" href="GrapeCity.Documents.Word.Extensions.TextFrameSupported.html#GrapeCity_Documents_Word_Extensions_TextFrameSupported_GrapeCity_Documents_Word_GeometryType_">TextFrameSupported(GeometryType)</a>).
If <a class="xref" href="GrapeCity.Documents.Word.Shape.GeometryType.html#GrapeCity_Documents_Word_Shape_GeometryType">GeometryType</a> of this shape does not support text frames, an exception will be thrown.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public LinkedTextFrame AddLinkedTextFrame(TextFrame linkTo, int index)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddLinkedTextFrame(linkTo As TextFrame, index As Integer) As LinkedTextFrame</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.TextFrame.html">TextFrame</a></td>
      <td><span class="parametername">linkTo</span></td>
      <td><p>The main text frame that starts the text frame story.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">index</span></td>
      <td><p>The 1-based index of the linked text frame in the story.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.LinkedTextFrame.html">LinkedTextFrame</a></td>
      <td><p>The added <a class="xref" href="GrapeCity.Documents.Word.Shape.LinkedTextFrame.html#GrapeCity_Documents_Word_Shape_LinkedTextFrame">LinkedTextFrame</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
