# GrapeCity.ActiveReports.Viewer.Win.Viewer.TableOfContentsClick

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="GrapeCity_ActiveReports_Viewer_Win_Viewer_TableOfContentsClick" data-uid="GrapeCity.ActiveReports.Viewer.Win.Viewer.TableOfContentsClick" class="text-break">TableOfContentsClick Event
</h1>
<div class="markdown level0 summary"><p>Occurs when the user clicks an item in the table of contents treeview.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Viewer.Win.html">GrapeCity.ActiveReports.Viewer.Win</a></h6>
<h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Viewer.Win.dll</h6>
<h5 id="GrapeCity_ActiveReports_Viewer_Win_Viewer_TableOfContentsClick_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event EventHandler TableOfContentsClick</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.eventhandler">EventHandler</a></td>
      <td>Occurs when the user clicks an item in the table of contents treeview.</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Viewer_Win_Viewer_TableOfContentsClick_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>The event handler receives an <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.eventargs">EventArgs</a> instance, which does not provide event data but indicates that the event has occurred.</p>
</div>
<h5 id="GrapeCity_ActiveReports_Viewer_Win_Viewer_TableOfContentsClick_examples"><strong>Examples</strong></h5>
<pre><code class="lang-csharp">// Subscribe to the TableOfContentsClick event
viewer.TableOfContentsClick += Viewer_TableOfContentsClick;
// Event handler for TableOfContentsClick
private void Viewer_TableOfContentsClick(object sender, EventArgs e)
{
	MessageBox.Show("The Table of Contents has been clicked.", "TOC Clicked");
}</code></pre>

</div>
