SubTextPartEventArgs 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 - Sub
Text Part Event Args
- Event
Description
The SubTextPartEventArgs class provides data for the SubTextPartClicked, SubTextPartCreated, SubTextPartDeleted, SubTextPartDoubleClicked, SubTextPartEntered and SubTextPartLeft events. When subtextpart is deleted, the SubTextPart object provided with the event data has the following valid properties: HighlightColor, HighlightMode, ID and Name. All other properties are undefined.
Syntax
public class SubTextPartEventArgs : EventArgsPublic Class SubTextPartEventArgs
Inherits EventArgsExamples
The following example uses SubTextPartEventArgs.SubTextPart while handling SubTextPartCreated.
textControl.SubTextPartCreated += (_, e) =>
{
e.SubTextPart?.ScrollTo();
};AddHandler textControl.SubTextPartCreated,
Sub(sender, e)
If e.SubTextPart IsNot Nothing Then e.SubTextPart.ScrollTo()
End SubMembers
Properties
| Property | Description |
|---|---|
| SubTextPart | Gets an object that represents the subtextpart which causes the event. It is of the type SubTextPart. |