OnTableOfContentsCreated Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Raises the TableOfContentsCreated event.
Syntax
protected virtual void OnTableOfContentsCreated(TableOfContentsEventArgs e);Protected Overridable Sub OnTableOfContentsCreated(e As TableOfContentsEventArgs)Parameters
| Parameter | Description |
|---|---|
| e | Specifies an TableOfContentsEventArgs object that contains the event data. |
Examples
The following example extends Text Control and performs custom processing when On Table Of Contents Created is invoked.
class CustomTextControl : TextControl
{
protected override void OnTableOfContentsCreated(TableOfContentsEventArgs e)
{
// Add custom processing before registered event handlers run.
base.OnTableOfContentsCreated(e);
}
}Class CustomTextControl
Inherits TextControl
Protected Overrides Sub OnTableOfContentsCreated(e As TableOfContentsEventArgs)
' Add custom processing before registered event handlers run.
MyBase.OnTableOfContentsCreated(e)
End Sub
End Class