# GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.OnMouseDown

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_OnMouseDown_" data-uid="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.OnMouseDown*">OnMouseDown Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_OnMouseDown_" data-uid="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.OnMouseDown*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_OnMouseDown_System_Windows_Input_MouseButtonEventArgs_" data-uid="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.OnMouseDown(System.Windows.Input.MouseButtonEventArgs)">OnMouseDown(MouseButtonEventArgs)</h4>
<div class="markdown level1 summary"><p>Invoked when an unhandled ouse.MouseDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.</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 OnMouseDown(MouseButtonEventArgs e)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overrides Sub OnMouseDown(e As MouseButtonEventArgs)</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.input.mousebuttoneventargs">MouseButtonEventArgs</a></td>
      <td><span class="parametername">e</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.input.mousebuttoneventargs">MouseButtonEventArgs</a> that contains the event data. This event data reports details about the mouse button that was pressed and the handled state.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement.onmousedown">UIElement.OnMouseDown(MouseButtonEventArgs)</a></div>
</div>
