DocumentTargetEventArgs Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXTextControl.from the setup.dll
- Inherits
- Event
Args - Document
Target Event Args
- Event
Description
The DocumentTargetEventArgs class provides data for the DocumentTargetCreated and DocumentTargetDeleted events. When subtextpart is deleted, the DocumentTarget object provided with the event data has the following valid properties: TargetName, Deleteable, ID and Name. All other properties are undefined.
Syntax
public class DocumentTargetEventArgs : EventArgsPublic Class DocumentTargetEventArgs
Inherits EventArgsExamples
The following example uses DocumentTargetEventArgs.DocumentTarget while handling DocumentTargetCreated.
textControl.DocumentTargetCreated += (_, e) =>
{
e.DocumentTarget?.ScrollTo();
};AddHandler textControl.DocumentTargetCreated,
Sub(sender, e)
If e.DocumentTarget IsNot Nothing Then e.DocumentTarget.ScrollTo()
End SubMembers
Properties
| Property | Description |
|---|---|
| DocumentTarget | Gets an object that represents the document target which causes the event. It is of the type DocumentTarget. |