# C1.TextParser.HtmlExtractor.AddPlaceHolder

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_TextParser_HtmlExtractor_AddPlaceHolder_" data-uid="C1.TextParser.HtmlExtractor.AddPlaceHolder*">AddPlaceHolder Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_TextParser_HtmlExtractor_AddPlaceHolder_" data-uid="C1.TextParser.HtmlExtractor.AddPlaceHolder*"></a>
<h4 id="C1_TextParser_HtmlExtractor_AddPlaceHolder_System_String_System_String_System_Int32_System_Int32_" data-uid="C1.TextParser.HtmlExtractor.AddPlaceHolder(System.String,System.String,System.Int32,System.Int32)">AddPlaceHolder(string, string, int, int)</h4>
<div class="markdown level1 summary"><p>Add a new fixed place holder to the template specification used by this HtmlExtractor.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddPlaceHolder(string fixedPlaceHolderName, string fixedPlaceHolderXPath, int selectionBeginIndex, int selectionLength)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddPlaceHolder(fixedPlaceHolderName As String, fixedPlaceHolderXPath As String, selectionBeginIndex As Integer, selectionLength 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">fixedPlaceHolderName</span></td>
      <td><p>The name to be used to refer to the place holder.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">fixedPlaceHolderXPath</span></td>
      <td><p>The XPath of the html element containing the selected text from the place holder.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">selectionBeginIndex</span></td>
      <td><p>The 0-based character index where the selected text begins regarding to
the TextContent property of the html element pointed by <code class="paramref">fixedPlaceHolderXPath</code>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">selectionLength</span></td>
      <td><p>The number of characters of the selected text.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_TextParser_HtmlExtractor_AddPlaceHolder_" data-uid="C1.TextParser.HtmlExtractor.AddPlaceHolder*"></a>
<h4 id="C1_TextParser_HtmlExtractor_AddPlaceHolder_System_String_System_String_" data-uid="C1.TextParser.HtmlExtractor.AddPlaceHolder(System.String,System.String)">AddPlaceHolder(string, string)</h4>
<div class="markdown level1 summary"><p>Add a new fixed place holder to the template specification used by this HtmlExtractor.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddPlaceHolder(string fixedPlaceHolderName, string fixedPlaceHolderXPath)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddPlaceHolder(fixedPlaceHolderName As String, fixedPlaceHolderXPath 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">fixedPlaceHolderName</span></td>
      <td><p>The name to be used to refer to the place holder.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">fixedPlaceHolderXPath</span></td>
      <td><p>The XPath of the html element containing the selected text from the place holder.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_TextParser_HtmlExtractor_AddPlaceHolder_" data-uid="C1.TextParser.HtmlExtractor.AddPlaceHolder*"></a>
<h4 id="C1_TextParser_HtmlExtractor_AddPlaceHolder_System_String_System_String_System_String_System_Int32_System_Int32_" data-uid="C1.TextParser.HtmlExtractor.AddPlaceHolder(System.String,System.String,System.String,System.Int32,System.Int32)">AddPlaceHolder(string, string, string, int, int)</h4>
<div class="markdown level1 summary"><p>Add a new repeated place holder to the template specification used by this HtmlExtractor.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddPlaceHolder(string repeatedBlockName, string repeatedPlaceHolderName, string repeatedPlaceHolderXPath, int selectionBeginIndex, int selectionLength)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddPlaceHolder(repeatedBlockName As String, repeatedPlaceHolderName As String, repeatedPlaceHolderXPath As String, selectionBeginIndex As Integer, selectionLength 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">repeatedBlockName</span></td>
      <td><p>The name of the repeated block in which the repeated place holder belongs.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">repeatedPlaceHolderName</span></td>
      <td><p>The name to be used to refer to the place holder.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">repeatedPlaceHolderXPath</span></td>
      <td><p>The XPath of the html element containing the selected text from the place holder.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">selectionBeginIndex</span></td>
      <td><p>The 0-based character index where the selected text begins regarding to
the TextContent property of the html element pointed by <code class="paramref">repeatedPlaceHolderXPath</code>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">selectionLength</span></td>
      <td><p>The number of characters of the selected text.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_TextParser_HtmlExtractor_AddPlaceHolder_" data-uid="C1.TextParser.HtmlExtractor.AddPlaceHolder*"></a>
<h4 id="C1_TextParser_HtmlExtractor_AddPlaceHolder_System_String_System_String_System_String_" data-uid="C1.TextParser.HtmlExtractor.AddPlaceHolder(System.String,System.String,System.String)">AddPlaceHolder(string, string, string)</h4>
<div class="markdown level1 summary"><p>Add a new repeated place holder to the template specification used by this HtmlExtractor/&gt;.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddPlaceHolder(string repeatedBlockName, string repeatedPlaceHolderName, string repeatedPlaceHolderXPath)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddPlaceHolder(repeatedBlockName As String, repeatedPlaceHolderName As String, repeatedPlaceHolderXPath 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">repeatedBlockName</span></td>
      <td><p>The name of the repeated block in which the repeated place holder belongs.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">repeatedPlaceHolderName</span></td>
      <td><p>The name to be used to refer to the place holder.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">repeatedPlaceHolderXPath</span></td>
      <td><p>The XPath of the html element containing the selected text from the place holder.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_TextParser_HtmlExtractor_AddPlaceHolder_" data-uid="C1.TextParser.HtmlExtractor.AddPlaceHolder*"></a>
<h4 id="C1_TextParser_HtmlExtractor_AddPlaceHolder_System_String_System_String_System_String_System_String_System_Int32_System_Int32_" data-uid="C1.TextParser.HtmlExtractor.AddPlaceHolder(System.String,System.String,System.String,System.String,System.Int32,System.Int32)">AddPlaceHolder(string, string, string, string, int, int)</h4>
<div class="markdown level1 summary"><p>Add a new repeated place holder to the template specification used by this HtmlExtractor.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddPlaceHolder(string repeatedBlockName, string repeatedPlaceHolderName, string repeatedPlaceHolderXPath, string repeatedPlaceHolderXPathInNextBlock, int selectionBeginIndex, int selectionLength)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddPlaceHolder(repeatedBlockName As String, repeatedPlaceHolderName As String, repeatedPlaceHolderXPath As String, repeatedPlaceHolderXPathInNextBlock As String, selectionBeginIndex As Integer, selectionLength 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">repeatedBlockName</span></td>
      <td><p>The name of the repeated block in which the repeated place holder belongs.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">repeatedPlaceHolderName</span></td>
      <td><p>The name to be used to refer to the place holder.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">repeatedPlaceHolderXPath</span></td>
      <td><p>The XPath of the html element containing the selected text from the place holder.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">repeatedPlaceHolderXPathInNextBlock</span></td>
      <td><p>The XPath of the element corresponding to <code class="paramref">repeatedPlaceHolderXPath</code>
in the following block instance.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">selectionBeginIndex</span></td>
      <td><p>The 0-based character index where the selected text begins regarding to
the TextContent property of the html element pointed by <code class="paramref">repeatedPlaceHolderXPath</code>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">selectionLength</span></td>
      <td><p>The number of characters of the selected text.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_TextParser_HtmlExtractor_AddPlaceHolder_" data-uid="C1.TextParser.HtmlExtractor.AddPlaceHolder*"></a>
<h4 id="C1_TextParser_HtmlExtractor_AddPlaceHolder_System_String_System_String_System_String_System_String_" data-uid="C1.TextParser.HtmlExtractor.AddPlaceHolder(System.String,System.String,System.String,System.String)">AddPlaceHolder(string, string, string, string)</h4>
<div class="markdown level1 summary"><p>Add a new repeated place holder to the template specification used by this HtmlExtractor.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddPlaceHolder(string repeatedBlockName, string repeatedPlaceHolderName, string repeatedPlaceHolderXPath, string repeatedPlaceHolderXPathInNextBlock)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddPlaceHolder(repeatedBlockName As String, repeatedPlaceHolderName As String, repeatedPlaceHolderXPath As String, repeatedPlaceHolderXPathInNextBlock 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">repeatedBlockName</span></td>
      <td><p>The name of the repeated block in which the repeated place holder belongs.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">repeatedPlaceHolderName</span></td>
      <td><p>The name to be used to refer to the place holder.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">repeatedPlaceHolderXPath</span></td>
      <td><p>The XPath of the html element containing the selected text from the place holder.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">repeatedPlaceHolderXPathInNextBlock</span></td>
      <td><p>The XPath of the element corresponding to <code class="paramref">repeatedPlaceHolderXPath</code>
in the following block instance.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
