TX Text Control .NET Server

EditableRegionEventArgs Class

Class|Introduced in 25.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. EditableRegionEventArgs

Description

The EditableRegionEventArgs class provides data for the EditableRegionCreated, EditableRegionDeleted, EditableRegionEntered and EditableRegionLeft events. When an editable region is deleted, the EditableRegion object provided with the event data has the following valid properties: HighlightColor, HighlightMode, ID and UserName. All other properties are undefined.

Syntax

public class EditableRegionEventArgs : EventArgs

Examples

The following example uses EditableRegionEventArgs.EditableRegion while handling EditableRegionEntered.

textControl.EditableRegionEntered += (_, e) =>
{
    e.EditableRegion?.ScrollTo();
};

Members

Properties

PropertyDescription
EditableRegionGets an object that represents the editable region which causes the event. It is of the type EditableRegion.