# GrapeCity.Win.Spread.InputMan.CellType.SideButton.Dispose

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_SideButton_Dispose_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.SideButton.Dispose*">Dispose Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_SideButton_Dispose_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.SideButton.Dispose*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_SideButton_Dispose_System_Boolean_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.SideButton.Dispose(System.Boolean)">Dispose(bool)</h4>
<div class="markdown level1 summary"><p>Releases the unmanaged resources used by the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a> and optionally releases the managed resources.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected override void Dispose(bool disposing)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overrides Sub Dispose(disposing As Boolean)</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.boolean">bool</a></td>
      <td><span class="parametername">disposing</span></td>
      <td><p>true to release both managed and unmanaged resources; false to release only unmanaged resources.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.SideButtonBase.Dispose.html#GrapeCity_Win_Spread_InputMan_CellType_SideButtonBase_Dispose_System_Boolean_">SideButtonBase.Dispose(bool)</a></div>
<h5 id="GrapeCity_Win_Spread_InputMan_CellType_SideButton_Dispose_System_Boolean__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Call <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.SideButton.Dispose.html#GrapeCity_Win_Spread_InputMan_CellType_SideButton_Dispose_System_Boolean_">Dispose(bool)</a> when you are finished using the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a>.
The <b>Dispose</b> method leaves the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a> in an unusable state.
After calling <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.SideButton.Dispose.html#GrapeCity_Win_Spread_InputMan_CellType_SideButton_Dispose_System_Boolean_">Dispose(bool)</a>, you must release all references to the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a>
so the garbage collector can reclaim the memory that the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a> was occupying.</p>
</div>
</div>
