# GrapeCity.Documents.Excel.Drawing.ITextRange.Add

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_Drawing_ITextRange_Add_" data-uid="GrapeCity.Documents.Excel.Drawing.ITextRange.Add*">Add Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_Drawing_ITextRange_Add_" data-uid="GrapeCity.Documents.Excel.Drawing.ITextRange.Add*"></a>
<h4 id="GrapeCity_Documents_Excel_Drawing_ITextRange_Add_System_String_System_Int32_" data-uid="GrapeCity.Documents.Excel.Drawing.ITextRange.Add(System.String,System.Int32)">Add(string, int)</h4>
<div class="markdown level1 summary"><p>Adds text to the specified collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">ITextRange Add(string newText = &quot;&quot;, int position = -1)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Add(Optional newText As String = &quot;&quot;, Optional position As Integer = -1) As ITextRange</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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">newText</span></td>
      <td><p>The new text.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">position</span></td>
      <td><p>The position that you want to insert.</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.Excel.Drawing.ITextRange.html">ITextRange</a></td>
      <td><p>The new <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ITextRange.html">ITextRange</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Documents_Excel_Drawing_ITextRange_Add_System_String_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This property is only used in <a class="xref" href="GrapeCity.Documents.Excel.Drawing.TextRangeType.html">TextRangeType</a>.Body and <a class="xref" href="GrapeCity.Documents.Excel.Drawing.TextRangeType.html">TextRangeType</a>.Paragraph.
Use this property on <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ITextRange.html">ITextRange</a>.Body and it will add a paragraph with a run.
Use this property on <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ITextRange.html">ITextRange</a>.Paragraph and it will add a run.</p>
</div>
</div>
