TX Text Control .NET for Windows Forms

TextFrameEventArgs Class

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

Description

The TextFrameEventArgs class provides data for all events that occur with text frames. These are the TextControl.TextFrameActivated, TextControl.TextFrameDeactivated, TextControl.TextFrameCreated, TextControl.TextFrameDeleted, TextControl.TextFrameClicked,TextControl.TextFrameDoubleClicked, TextControl.TextFrameRightClicked, TextControl.TextFrameMoved, TextControl.TextFrameSelected, TextControl.TextFrameDeselected, and TextControl.TextFrameSized events.

Syntax

public class TextFrameEventArgs : EventArgs

Examples

The following example uses TextFrameEventArgs.TextFrame while handling TextFrameClicked.

textControl.TextFrameClicked += (_, e) =>
{
    if (e.TextFrame != null)
    {
        e.TextFrame.DescriptiveText = "Quarterly sales by region";
    }
};

Members

Properties

PropertyDescription
TextFrameGets an object that represents the text frame which causes the event. It is of the type TextFrame.