# GrapeCity.ActiveReports.Document.Section.DrawCanvas.DrawTextInputField

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Document_Section_DrawCanvas_DrawTextInputField_" data-uid="GrapeCity.ActiveReports.Document.Section.DrawCanvas.DrawTextInputField*">DrawTextInputField Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Document_Section_DrawCanvas_DrawTextInputField_" data-uid="GrapeCity.ActiveReports.Document.Section.DrawCanvas.DrawTextInputField*"></a>
<h4 id="GrapeCity_ActiveReports_Document_Section_DrawCanvas_DrawTextInputField_System_Drawing_RectangleF_System_String_System_Boolean_System_Boolean_GrapeCity_ActiveReports_Document_Section_InputBorderStyle_System_Single_System_Drawing_Color_System_Int32_System_Boolean_System_Boolean_System_Boolean_GrapeCity_ActiveReports_Document_Section_InputTextAlign_System_String___" data-uid="GrapeCity.ActiveReports.Document.Section.DrawCanvas.DrawTextInputField(System.Drawing.RectangleF,System.String,System.Boolean,System.Boolean,GrapeCity.ActiveReports.Document.Section.InputBorderStyle,System.Single,System.Drawing.Color,System.Int32,System.Boolean,System.Boolean,System.Boolean,GrapeCity.ActiveReports.Document.Section.InputTextAlign,System.String[])">DrawTextInputField(RectangleF, string, bool, bool, InputBorderStyle, float, Color, int, bool, bool, bool, InputTextAlign, string[])</h4>
<div class="markdown level1 summary"><p>Draws a text input field on the canvas.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DrawTextInputField(RectangleF bounds, string fieldName, bool readOnly, bool required, InputBorderStyle borderStyle, float borderWidth, Color borderColor, int maxLength, bool multiline, bool password, bool spellCheck, InputTextAlign alignment, string[] textArray)</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.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">bounds</span></td>
      <td><p>The bounding rectangle of the input field.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">fieldName</span></td>
      <td><p>The name of the input field.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">readOnly</span></td>
      <td><p>Indicates whether the field is read-only.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">required</span></td>
      <td><p>Indicates whether the field is required.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Document.Section.InputBorderStyle.html">InputBorderStyle</a></td>
      <td><span class="parametername">borderStyle</span></td>
      <td><p>The style of the input field border.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">borderWidth</span></td>
      <td><p>The width of the input field border.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">borderColor</span></td>
      <td><p>The color of the input field border.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">maxLength</span></td>
      <td><p>The maximum number of characters allowed in the input field.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">multiline</span></td>
      <td><p>Indicates whether the input field supports multiple lines.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">password</span></td>
      <td><p>Indicates whether the input field is for password entry.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">spellCheck</span></td>
      <td><p>Indicates whether spell check is enabled.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Document.Section.InputTextAlign.html">InputTextAlign</a></td>
      <td><span class="parametername">alignment</span></td>
      <td><p>The text alignment within the input field.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</td>
      <td><span class="parametername">textArray</span></td>
      <td><p>The array of text lines to be displayed in the input field.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Document_Section_DrawCanvas_DrawTextInputField_" data-uid="GrapeCity.ActiveReports.Document.Section.DrawCanvas.DrawTextInputField*"></a>
<h4 id="GrapeCity_ActiveReports_Document_Section_DrawCanvas_DrawTextInputField_System_Drawing_RectangleF_System_String_System_Boolean_System_Boolean_GrapeCity_ActiveReports_Document_Section_InputBorderStyle_System_Single_System_Drawing_Color_System_Int32_System_Boolean_System_Boolean_System_Boolean_GrapeCity_ActiveReports_Document_Section_InputTextAlign_System_String___System_Int32_" data-uid="GrapeCity.ActiveReports.Document.Section.DrawCanvas.DrawTextInputField(System.Drawing.RectangleF,System.String,System.Boolean,System.Boolean,GrapeCity.ActiveReports.Document.Section.InputBorderStyle,System.Single,System.Drawing.Color,System.Int32,System.Boolean,System.Boolean,System.Boolean,GrapeCity.ActiveReports.Document.Section.InputTextAlign,System.String[],System.Int32)">DrawTextInputField(RectangleF, string, bool, bool, InputBorderStyle, float, Color, int, bool, bool, bool, InputTextAlign, string[], int)</h4>
<div class="markdown level1 summary"><p>Draws a text input field on the canvas with a specified tab index.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DrawTextInputField(RectangleF bounds, string fieldName, bool readOnly, bool required, InputBorderStyle borderStyle, float borderWidth, Color borderColor, int maxLength, bool multiline, bool password, bool spellCheck, InputTextAlign alignment, string[] textArray, int tabIndex)</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.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">bounds</span></td>
      <td><p>The bounding rectangle of the input field.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">fieldName</span></td>
      <td><p>The name of the input field.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">readOnly</span></td>
      <td><p>Indicates whether the field is read-only.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">required</span></td>
      <td><p>Indicates whether the field is required.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Document.Section.InputBorderStyle.html">InputBorderStyle</a></td>
      <td><span class="parametername">borderStyle</span></td>
      <td><p>The style of the input field border.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">borderWidth</span></td>
      <td><p>The width of the input field border.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">borderColor</span></td>
      <td><p>The color of the input field border.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">maxLength</span></td>
      <td><p>The maximum number of characters allowed in the input field.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">multiline</span></td>
      <td><p>Indicates whether the input field supports multiple lines.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">password</span></td>
      <td><p>Indicates whether the input field is for password entry.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">spellCheck</span></td>
      <td><p>Indicates whether spell check is enabled.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Document.Section.InputTextAlign.html">InputTextAlign</a></td>
      <td><span class="parametername">alignment</span></td>
      <td><p>The text alignment within the input field.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</td>
      <td><span class="parametername">textArray</span></td>
      <td><p>The array of text lines to be displayed in the input field.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">tabIndex</span></td>
      <td><p>The tab index of the input field.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
