# GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.OnRender

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_OnRender_" data-uid="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.OnRender*">OnRender Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_OnRender_" data-uid="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.OnRender*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_OnRender_System_Windows_Media_DrawingContext_" data-uid="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.OnRender(System.Windows.Media.DrawingContext)">OnRender(DrawingContext)</h4>
<div class="markdown level1 summary"><p>When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.</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 OnRender(DrawingContext drawingContext)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overrides Sub OnRender(drawingContext As DrawingContext)</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.windows.media.drawingcontext">DrawingContext</a></td>
      <td><span class="parametername">drawingContext</span></td>
      <td><p>The drawing instructions for a specific element. This context is provided to the layout system.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement.onrender">UIElement.OnRender(DrawingContext)</a></div>
</div>
