# GrapeCity.Spreadsheet.Charts.IChart.Location

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Charts_IChart_Location_" data-uid="GrapeCity.Spreadsheet.Charts.IChart.Location*">Location Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Charts_IChart_Location_" data-uid="GrapeCity.Spreadsheet.Charts.IChart.Location*"></a>
<h4 id="GrapeCity_Spreadsheet_Charts_IChart_Location_GrapeCity_Spreadsheet_Charts_ChartLocation_System_String_" data-uid="GrapeCity.Spreadsheet.Charts.IChart.Location(GrapeCity.Spreadsheet.Charts.ChartLocation,System.String)">Location(ChartLocation, string)</h4>
<div class="markdown level1 summary"><p>Moves the chart to a new location.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void Location(ChartLocation where, string name)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub Location(where As ChartLocation, name 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="GrapeCity.Spreadsheet.Charts.ChartLocation.html">ChartLocation</a></td>
      <td><span class="parametername">where</span></td>
      <td><p>Where to move the chart.</p>
</td>
    </tr>
    <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 name of the sheet where the chart will be embedded if <code class="paramref">where</code> is <a class="xref" href="GrapeCity.Spreadsheet.Charts.ChartLocation.html#GrapeCity_Spreadsheet_Charts_ChartLocation_Object">Object</a>,
or the name of the new sheet if <code class="paramref">where</code> is <a class="xref" href="GrapeCity.Spreadsheet.Charts.ChartLocation.html#GrapeCity_Spreadsheet_Charts_ChartLocation_NewSheet">NewSheet</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
