# C1.Web.Mvc.Sheet.Fluent.DefinedNameBuilder

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_Sheet_Fluent_DefinedNameBuilder" data-uid="C1.Web.Mvc.Sheet.Fluent.DefinedNameBuilder" class="text-break">DefinedNameBuilder Class
</h1>
  <div class="markdown level0 summary"><p>Defines a builder to configurate <a class="xref" href="C1.Web.Mvc.Sheet.DefinedName.html">DefinedName</a>.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">HideObjectMembers</span></div>
    <div class="level2"><a class="xref" href="../C1.AspNetCore.Mvc/C1.Web.Mvc.Fluent.BaseBuilder-2.html">BaseBuilder</a>&lt;<a class="xref" href="C1.Web.Mvc.Sheet.DefinedName.html">DefinedName</a>, <a class="xref" href="C1.Web.Mvc.Sheet.Fluent.DefinedNameBuilder.html">DefinedNameBuilder</a>&gt;</div>
    <div class="level3"><span class="xref">DefinedNameBuilder</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Mvc.Sheet.Fluent.html">C1.Web.Mvc.Sheet.Fluent</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.FlexSheet.dll</h6>
  <h5 id="C1_Web_Mvc_Sheet_Fluent_DefinedNameBuilder_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DefinedNameBuilder : BaseBuilder&lt;DefinedName, DefinedNameBuilder&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DefinedNameBuilder
    Inherits BaseBuilder(Of DefinedName, DefinedNameBuilder)</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Web_Mvc_Sheet_Fluent_DefinedNameBuilder__ctor_C1_Web_Mvc_Sheet_DefinedName_" data-uid="C1.Web.Mvc.Sheet.Fluent.DefinedNameBuilder.#ctor(C1.Web.Mvc.Sheet.DefinedName)">
          <a class="xref" href="C1.Web.Mvc.Sheet.Fluent.DefinedNameBuilder.-ctor.html#C1_Web_Mvc_Sheet_Fluent_DefinedNameBuilder__ctor_C1_Web_Mvc_Sheet_DefinedName_">DefinedNameBuilder(DefinedName)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one <a class="xref" href="C1.Web.Mvc.Sheet.Fluent.DefinedNameBuilder.html">DefinedNameBuilder</a> instance to configurate <code class="paramref">obj</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Web_Mvc_Sheet_Fluent_DefinedNameBuilder_Name_System_String_" data-uid="C1.Web.Mvc.Sheet.Fluent.DefinedNameBuilder.Name(System.String)">
          <a class="xref" href="C1.Web.Mvc.Sheet.Fluent.DefinedNameBuilder.Name.html#C1_Web_Mvc_Sheet_Fluent_DefinedNameBuilder_Name_System_String_">Name(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Sheet.DefinedName.Name.html#C1_Web_Mvc_Sheet_DefinedName_Name">Name</a>.
Sets the name of the defined name item.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_Fluent_DefinedNameBuilder_SheetName_System_String_" data-uid="C1.Web.Mvc.Sheet.Fluent.DefinedNameBuilder.SheetName(System.String)">
          <a class="xref" href="C1.Web.Mvc.Sheet.Fluent.DefinedNameBuilder.SheetName.html#C1_Web_Mvc_Sheet_Fluent_DefinedNameBuilder_SheetName_System_String_">SheetName(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Sheet.DefinedName.SheetName.html#C1_Web_Mvc_Sheet_DefinedName_SheetName">SheetName</a>.
Sets the defined name item works in which sheet.
If omitted, the defined name item works in workbook.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_Fluent_DefinedNameBuilder_Value_System_String_" data-uid="C1.Web.Mvc.Sheet.Fluent.DefinedNameBuilder.Value(System.String)">
          <a class="xref" href="C1.Web.Mvc.Sheet.Fluent.DefinedNameBuilder.Value.html#C1_Web_Mvc_Sheet_Fluent_DefinedNameBuilder_Value_System_String_">Value(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Sheet.DefinedName.Value.html#C1_Web_Mvc_Sheet_DefinedName_Value">Value</a>.
Sets the value of the defined name item.
The value could be a formula, a string constant or a cell range.
For e.g. &quot;Sum(1, 2, 3)&quot;, &quot;1.2&quot;, &quot;&quot;test&quot;&quot; or &quot;sheet1!A1:B2&quot;.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
