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