TX Text Control .NET Server

SubTextPartEventArgs Class

Class|Introduced in 23.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Core.dll
Install
dotnet add package TXTextControl.TextControl.Core.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll
Inherits
  1. EventArgs
  2. SubTextPartEventArgs

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 : EventArgs

Examples

The following example uses SubTextPartEventArgs.SubTextPart while handling SubTextPartCreated.

textControl.SubTextPartCreated += (_, e) =>
{
    e.SubTextPart?.ScrollTo();
};

Members

Properties

PropertyDescription
SubTextPartGets an object that represents the subtextpart which causes the event. It is of the type SubTextPart.