# FarPoint.Win.Spread.Model.DefaultSheetDataModel.CheckName

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_Model_DefaultSheetDataModel_CheckName_" data-uid="FarPoint.Win.Spread.Model.DefaultSheetDataModel.CheckName*">CheckName Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_Model_DefaultSheetDataModel_CheckName_" data-uid="FarPoint.Win.Spread.Model.DefaultSheetDataModel.CheckName*"></a>
<h4 id="FarPoint_Win_Spread_Model_DefaultSheetDataModel_CheckName_System_String_" data-uid="FarPoint.Win.Spread.Model.DefaultSheetDataModel.CheckName(System.String)">CheckName(string)</h4>
<div class="markdown level1 summary"><p>Checks if the specified name is one of the common scope custom names of this data model
and returns the name of the custom name in the data model.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string CheckName(string name)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CheckName(name As String) 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>The specified name</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</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><p>The name of the custom name in the data model if the specified name is a common scope custom name in this data model; otherwise, returns null.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="FarPoint.Win.Spread.Model.ICustomNameSupport3.CheckName.html#FarPoint_Win_Spread_Model_ICustomNameSupport3_CheckName_System_String_">ICustomNameSupport3.CheckName(string)</a></div>
</div>
