# C1.C1Word.Canvas.TextBoxShape.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Word_Canvas_TextBoxShape__ctor_" data-uid="C1.C1Word.Canvas.TextBoxShape.#ctor*">TextBoxShape Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Word_Canvas_TextBoxShape__ctor_" data-uid="C1.C1Word.Canvas.TextBoxShape.#ctor*"></a>
<h4 id="C1_C1Word_Canvas_TextBoxShape__ctor" data-uid="C1.C1Word.Canvas.TextBoxShape.#ctor">TextBoxShape()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.C1Word.Canvas.TextBoxShape.html">TextBoxShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TextBoxShape()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_C1Word_Canvas_TextBoxShape__ctor_" data-uid="C1.C1Word.Canvas.TextBoxShape.#ctor*"></a>
<h4 id="C1_C1Word_Canvas_TextBoxShape__ctor_System_String_" data-uid="C1.C1Word.Canvas.TextBoxShape.#ctor(System.String)">TextBoxShape(string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.C1Word.Canvas.TextBoxShape.html">TextBoxShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TextBoxShape(string text)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(text As String)</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">text</span></td>
      <td><p>The text contained in the new <a class="xref" href="C1.C1Word.Canvas.TextBoxShape.html">TextBoxShape</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Word_Canvas_TextBoxShape__ctor_" data-uid="C1.C1Word.Canvas.TextBoxShape.#ctor*"></a>
<h4 id="C1_C1Word_Canvas_TextBoxShape__ctor_System_String_System_Int32_System_Int32_" data-uid="C1.C1Word.Canvas.TextBoxShape.#ctor(System.String,System.Int32,System.Int32)">TextBoxShape(string, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.C1Word.Canvas.TextBoxShape.html">TextBoxShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TextBoxShape(string text, int x, int y)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(text As String, x As Integer, y As Integer)</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">text</span></td>
      <td><p>The text contained in the new <a class="xref" href="C1.C1Word.Canvas.TextBoxShape.html">TextBoxShape</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The horizontal position of the new shape with respect to the cell, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The vertical position of the new shape with respect to the cell, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Word_Canvas_TextBoxShape__ctor_" data-uid="C1.C1Word.Canvas.TextBoxShape.#ctor*"></a>
<h4 id="C1_C1Word_Canvas_TextBoxShape__ctor_System_String_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.C1Word.Canvas.TextBoxShape.#ctor(System.String,System.Int32,System.Int32,System.Int32,System.Int32)">TextBoxShape(string, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.C1Word.Canvas.TextBoxShape.html">TextBoxShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TextBoxShape(string text, int x, int y, int width, int height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(text As String, x As Integer, y As Integer, width As Integer, height As Integer)</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">text</span></td>
      <td><p>The text contained in the new <a class="xref" href="C1.C1Word.Canvas.TextBoxShape.html">TextBoxShape</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The horizontal position of the image with respect to the cell, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The vertical position of the image with respect to the cell, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the image, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the image, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Word_Canvas_TextBoxShape__ctor_" data-uid="C1.C1Word.Canvas.TextBoxShape.#ctor*"></a>
<h4 id="C1_C1Word_Canvas_TextBoxShape__ctor_C1_C1Word_Canvas_IShapeContainer_System_String_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.C1Word.Canvas.TextBoxShape.#ctor(C1.C1Word.Canvas.IShapeContainer,System.String,System.Int32,System.Int32,System.Int32,System.Int32)">TextBoxShape(IShapeContainer, string, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.C1Word.Canvas.TextBoxShape.html">TextBoxShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TextBoxShape(IShapeContainer container, string text, int x, int y, int width, int height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(container As IShapeContainer, text As String, x As Integer, y As Integer, width As Integer, height As Integer)</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="C1.C1Word.Canvas.IShapeContainer.html">IShapeContainer</a></td>
      <td><span class="parametername">container</span></td>
      <td><p><a class="xref" href="C1.C1Word.Canvas.IShapeContainer.html">IShapeContainer</a> object that owns the shape container.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>The text contained in the new <a class="xref" href="C1.C1Word.Canvas.TextBoxShape.html">TextBoxShape</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The horizontal position of the image with respect to the sheet, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The vertical position of the image with respect to the sheet, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the image, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the image, in twips.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
