# FarPoint.Win.Spread.SheetView.AddCustomName

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_SheetView_AddCustomName_" data-uid="FarPoint.Win.Spread.SheetView.AddCustomName*">AddCustomName Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_SheetView_AddCustomName_" data-uid="FarPoint.Win.Spread.SheetView.AddCustomName*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_AddCustomName_System_String_System_String_System_Int32_System_Int32_System_Boolean_System_String_" data-uid="FarPoint.Win.Spread.SheetView.AddCustomName(System.String,System.String,System.Int32,System.Int32,System.Boolean,System.String)">AddCustomName(string, string, int, int, bool, string)</h4>
<div class="markdown level1 summary"><p>Adds a custom name to the model using the specified string value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddCustomName(string name, string value, int baseRow, int baseColumn, bool sheetViewScope, string comment)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddCustomName(name As String, value As String, baseRow As Integer, baseColumn As Integer, sheetViewScope As Boolean, comment 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">name</span></td>
      <td><p>Custom 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>String value for the custom name</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>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">sheetViewScope</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">comment</span></td>
      <td><p>Comment for the custom name</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_AddCustomName_" data-uid="FarPoint.Win.Spread.SheetView.AddCustomName*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_AddCustomName_System_String_System_String_System_Int32_System_Int32_" data-uid="FarPoint.Win.Spread.SheetView.AddCustomName(System.String,System.String,System.Int32,System.Int32)">AddCustomName(string, string, int, int)</h4>
<div class="markdown level1 summary"><p>Adds a custom name to the model using the specified string value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddCustomName(string name, string value, int baseRow, int baseColumn)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public 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>Custom 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>String value for the custom name</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>
</div>
