# GrapeCity.Wpf.SpreadSheet.Dialogs.BuiltInDialogs.DefinedName

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_Dialogs_BuiltInDialogs_DefinedName_" data-uid="GrapeCity.Wpf.SpreadSheet.Dialogs.BuiltInDialogs.DefinedName*">DefinedName Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_Dialogs_BuiltInDialogs_DefinedName_" data-uid="GrapeCity.Wpf.SpreadSheet.Dialogs.BuiltInDialogs.DefinedName*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_Dialogs_BuiltInDialogs_DefinedName_GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_GrapeCity_Spreadsheet_IName_GrapeCity_Spreadsheet_CellReference_GrapeCity_Spreadsheet_IRange_" data-uid="GrapeCity.Wpf.SpreadSheet.Dialogs.BuiltInDialogs.DefinedName(GrapeCity.Wpf.SpreadSheet.GcSpreadSheet,GrapeCity.Spreadsheet.IName,GrapeCity.Spreadsheet.CellReference,GrapeCity.Spreadsheet.IRange)">DefinedName(GcSpreadSheet, IName, CellReference, IRange)</h4>
<div class="markdown level1 summary"><p>Create or edit the name of cell ranges in workbook/worksheets.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static IDialog DefinedName(GcSpreadSheet spread, IName definedName, CellReference contextCell, IRange range = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function DefinedName(spread As GcSpreadSheet, definedName As IName, contextCell As CellReference, Optional range As IRange = Nothing) As IDialog</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="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.html">GcSpreadSheet</a></td>
      <td><span class="parametername">spread</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.html">GcSpreadSheet</a> control to work with.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.IName.html">IName</a></td>
      <td><span class="parametername">definedName</span></td>
      <td><p>The defined name object to edit. Use <code>null</code> to create new defined name.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.CellReference.html">CellReference</a></td>
      <td><span class="parametername">contextCell</span></td>
      <td><p>The context cell to modify defined name. Use <a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.CellReference.Empty.html">Empty</a> to refer to the current active cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.IRange.html">IRange</a></td>
      <td><span class="parametername">range</span></td>
      <td><p>The default range to create new defined 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="GrapeCity.Wpf.SpreadSheet.Dialogs.IDialog.html">IDialog</a></td>
      <td><p>The <a class="xref" href="GrapeCity.Wpf.SpreadSheet.Dialogs.IDialog.html">IDialog</a> object represents the defined name dialog.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
