# C1.C1Pdf.C1PdfDocument.AddField

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Pdf_C1PdfDocument_AddField_" data-uid="C1.C1Pdf.C1PdfDocument.AddField*">AddField Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Pdf_C1PdfDocument_AddField_" data-uid="C1.C1Pdf.C1PdfDocument.AddField*"></a>
<h4 id="C1_C1Pdf_C1PdfDocument_AddField_C1_C1Pdf_PdfFieldBase_System_Drawing_RectangleF_" data-uid="C1.C1Pdf.C1PdfDocument.AddField(C1.C1Pdf.PdfFieldBase,System.Drawing.RectangleF)">AddField(PdfFieldBase, RectangleF)</h4>
<div class="markdown level1 summary"><p>Adds an AcroField to the current page.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddField(PdfFieldBase field, RectangleF rc)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddField(field As PdfFieldBase, rc As RectangleF)</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.C1Pdf.PdfFieldBase.html">PdfFieldBase</a></td>
      <td><span class="parametername">field</span></td>
      <td><p>The <a class="xref" href="C1.C1Pdf.PdfFieldBase.html">PdfFieldBase</a> object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">rc</span></td>
      <td><p>Area on the page that will behave as an AcroField (in points from the top-left corner of the page).</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Pdf_C1PdfDocument_AddField_" data-uid="C1.C1Pdf.C1PdfDocument.AddField*"></a>
<h4 id="C1_C1Pdf_C1PdfDocument_AddField_C1_C1Pdf_PdfFieldBase_System_Int32_System_Drawing_RectangleF_" data-uid="C1.C1Pdf.C1PdfDocument.AddField(C1.C1Pdf.PdfFieldBase,System.Int32,System.Drawing.RectangleF)">AddField(PdfFieldBase, int, RectangleF)</h4>
<div class="markdown level1 summary"><p>Adds an AcroField to the document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddField(PdfFieldBase field, int page, RectangleF rc)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddField(field As PdfFieldBase, page As Integer, rc As RectangleF)</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.C1Pdf.PdfFieldBase.html">PdfFieldBase</a></td>
      <td><span class="parametername">field</span></td>
      <td><p>The <a class="xref" href="C1.C1Pdf.PdfFieldBase.html">PdfFieldBase</a> object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">page</span></td>
      <td><p>Index of the page that will contain the AcroField.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">rc</span></td>
      <td><p>Area on the page that will behave as a AcroField (in points from the top-left corner of the page).</p>
</td>
    </tr>
  </tbody>
</table>
</div>
