DocumentLoaded Event
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Occurs when a new document has been loaded. The event handler receives an argument of type EventArgs containing data related to this event.
Syntax
public event EventHandler DocumentLoaded;Public Event DocumentLoaded As EventHandlerExamples
The following example records useful context when document loaded occurs.
textControl.DocumentLoaded += (sender, e) =>
{
Console.WriteLine($"Document Loaded at {DateTime.Now:u}");
};AddHandler textControl.DocumentLoaded,
Sub(sender, e)
Console.WriteLine($"Document Loaded at {DateTime.Now:u}")
End Sub