[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Viewer.Win.Viewer.TableOfContentsAfterSelect

TableOfContentsAfterSelect Event

Occurs after an item is selected in the table of contents treeview.

Namespace: GrapeCity.ActiveReports.Viewer.Win
Assembly: MESCIUS.ActiveReports.Viewer.Win.dll
Syntax
public event TreeViewEventHandler TableOfContentsAfterSelect
Returns
Type Description
TreeViewEventHandler Occurs after an item is selected in the table of contents treeview.
Remarks

The TreeViewEventArgs provides information about the selected item, enabling event handlers to access the item's properties and take appropriate actions, such as navigating to the corresponding section in the document.

Examples
// Assuming 'viewer' is an instance of the Viewer class
// Subscribe to the TableOfContentsAfterSelect event
viewer.TableOfContentsAfterSelect += Viewer_TableOfContentsAfterSelect;
// Event handler for TableOfContentsAfterSelect
private void Viewer_TableOfContentsAfterSelect(object sender, TreeViewEventArgs e)
{
	var selectedNodeText = e.Node.Text;
	MessageBox.Show($"You have selected: {selectedNodeText}", "TOC Selection");
}