TextFrameEventArgs Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. Core. SDK
- Assembly
TXTextControl.Core. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. Core. SDK TXTextControl.from the setup.dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
- Inherits
- Event
Args - Text
Frame Event Args
- Event
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 : EventArgsPublic Class TextFrameEventArgs
Inherits EventArgsExamples
The following example uses TextFrameEventArgs.TextFrame while handling TextFrameClicked.
textControl.TextFrameClicked += (_, e) =>
{
if (e.TextFrame != null)
{
e.TextFrame.DescriptiveText = "Quarterly sales by region";
}
};AddHandler textControl.TextFrameClicked,
Sub(sender, e)
If e.TextFrame IsNot Nothing Then
e.TextFrame.DescriptiveText = "Quarterly sales by region"
End If
End SubMembers
Properties
| Property | Description |
|---|---|
| TextFrame | Gets an object that represents the text frame which causes the event. It is of the type TextFrame. |