[]
Occurs when the user clicks an item in the table of contents treeview.
public event EventHandler TableOfContentsClick
Type | Description |
---|---|
EventHandler | Occurs when the user clicks an item in the table of contents treeview. |
The event handler receives an EventArgs instance, which does not provide event data but indicates that the event has occurred.
// 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");
}