# FarPoint.Win.Spread.Model.ICustomNameSupport.AddCustomName

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_Model_ICustomNameSupport_AddCustomName_" data-uid="FarPoint.Win.Spread.Model.ICustomNameSupport.AddCustomName*">AddCustomName Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_Model_ICustomNameSupport_AddCustomName_" data-uid="FarPoint.Win.Spread.Model.ICustomNameSupport.AddCustomName*"></a>
<h4 id="FarPoint_Win_Spread_Model_ICustomNameSupport_AddCustomName_System_String_System_String_System_Int32_System_Int32_" data-uid="FarPoint.Win.Spread.Model.ICustomNameSupport.AddCustomName(System.String,System.String,System.Int32,System.Int32)">AddCustomName(string, string, int, int)</h4>
<div class="markdown level1 summary"><p>Adds a new user-defined name for the specified value, as string, to the model.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void AddCustomName(string name, string value, int baseRow, int baseColumn)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub AddCustomName(name As String, value As String, baseRow As Integer, baseColumn 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">name</span></td>
      <td><p>Name to add</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>Value for name, as string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">baseRow</span></td>
      <td><p>Base row index for calculating relative row references in the value</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">baseColumn</span></td>
      <td><p>Base column index for calculating relative column references in the value</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_Model_ICustomNameSupport_AddCustomName_" data-uid="FarPoint.Win.Spread.Model.ICustomNameSupport.AddCustomName*"></a>
<h4 id="FarPoint_Win_Spread_Model_ICustomNameSupport_AddCustomName_System_String_FarPoint_CalcEngine_Expression_" data-uid="FarPoint.Win.Spread.Model.ICustomNameSupport.AddCustomName(System.String,FarPoint.CalcEngine.Expression)">AddCustomName(string, Expression)</h4>
<div class="markdown level1 summary"><p>Adds a new user-defined name for the specified value, as an expression, to the model.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void AddCustomName(string name, Expression value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub AddCustomName(name As String, value As Expression)</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">name</span></td>
      <td><p>Name to add</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.CalcEngine/FarPoint.CalcEngine.Expression.html">Expression</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>Value for name, as expression</p>
</td>
    </tr>
  </tbody>
</table>
</div>
