# GrapeCity.Spreadsheet.UI.UIManager.Invalidate

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_UI_UIManager_Invalidate_" data-uid="GrapeCity.Spreadsheet.UI.UIManager.Invalidate*">Invalidate Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_UI_UIManager_Invalidate_" data-uid="GrapeCity.Spreadsheet.UI.UIManager.Invalidate*"></a>
<h4 id="GrapeCity_Spreadsheet_UI_UIManager_Invalidate_GrapeCity_Spreadsheet_IWorksheet_System_Int32_System_Int32_System_Int32_System_Int32_GrapeCity_Spreadsheet_UI_ActionCategory_System_Object_" data-uid="GrapeCity.Spreadsheet.UI.UIManager.Invalidate(GrapeCity.Spreadsheet.IWorksheet,System.Int32,System.Int32,System.Int32,System.Int32,GrapeCity.Spreadsheet.UI.ActionCategory,System.Object)">Invalidate(IWorksheet, int, int, int, int, ActionCategory, object)</h4>
<div class="markdown level1 summary"><p>Invalidates the specified region of the worksheet, the control need to re-paint the corresponding cell range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void Invalidate(IWorksheet worksheet, int row, int column, int row2, int column2, ActionCategory category = ActionCategory.General, object context = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub Invalidate(worksheet As IWorksheet, row As Integer, column As Integer, row2 As Integer, column2 As Integer, Optional category As ActionCategory = ActionCategory.General, Optional context As Object = Nothing)</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.IWorksheet.html">IWorksheet</a></td>
      <td><span class="parametername">worksheet</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.IWorksheet.html">IWorksheet</a> indicates the worksheet contains cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>An integer value indicates the top row index of cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>An integer value indicates the left column index of cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row2</span></td>
      <td><p>An integer value indicates the bottom row index of cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column2</span></td>
      <td><p>An integer value indicates the right column index of cell range.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">ActionCategory</span></td>
      <td><span class="parametername">category</span></td>
      <td><p>An <span class="xref">GrapeCity.Spreadsheet.UI.ActionCategory</span> value indicates which data causes invalidating UI.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>A context object that specifies current object that is being invalidated</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_UI_UIManager_Invalidate_" data-uid="GrapeCity.Spreadsheet.UI.UIManager.Invalidate*"></a>
<h4 id="GrapeCity_Spreadsheet_UI_UIManager_Invalidate_GrapeCity_Spreadsheet_Worksheet_GrapeCity_Spreadsheet_Drawing_DrawingObject_" data-uid="GrapeCity.Spreadsheet.UI.UIManager.Invalidate(GrapeCity.Spreadsheet.Worksheet,GrapeCity.Spreadsheet.Drawing.DrawingObject)">Invalidate(Worksheet, DrawingObject)</h4>
<div class="markdown level1 summary"><p>Invalidates the specified drawing object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void Invalidate(Worksheet worksheet, DrawingObject shape)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub Invalidate(worksheet As Worksheet, shape As DrawingObject)</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><span class="xref">Worksheet</span></td>
      <td><span class="parametername">worksheet</span></td>
      <td><p>The worksheet which contains the drawing object.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">DrawingObject</span></td>
      <td><span class="parametername">shape</span></td>
      <td><p>The drawing object to invalidate.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_UI_UIManager_Invalidate_" data-uid="GrapeCity.Spreadsheet.UI.UIManager.Invalidate*"></a>
<h4 id="GrapeCity_Spreadsheet_UI_UIManager_Invalidate_GrapeCity_Spreadsheet_IWorkbook_GrapeCity_Spreadsheet_UI_ActionCategory_" data-uid="GrapeCity.Spreadsheet.UI.UIManager.Invalidate(GrapeCity.Spreadsheet.IWorkbook,GrapeCity.Spreadsheet.UI.ActionCategory)">Invalidate(IWorkbook, ActionCategory)</h4>
<div class="markdown level1 summary"><p>Invalidates the workbook.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void Invalidate(IWorkbook workbook, ActionCategory category)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub Invalidate(workbook As IWorkbook, category As ActionCategory)</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.IWorkbook.html">IWorkbook</a></td>
      <td><span class="parametername">workbook</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.IWorkbook.html">IWorkbook</a> indicates the workbook to repaint.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">ActionCategory</span></td>
      <td><span class="parametername">category</span></td>
      <td><p>An <span class="xref">GrapeCity.Spreadsheet.UI.ActionCategory</span> value indicates which data causes invalidating UI.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
