FrameEventArgs 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 - Frame
Event Args
- Event
Description
The FrameEventArgs class provides data for all events that occur with frames. A frame can be an image, a text frame, a chart, a barcode or a drawing.
Syntax
public class FrameEventArgs : EventArgsPublic Class FrameEventArgs
Inherits EventArgsExamples
The following example uses FrameEventArgs.Frame while handling FrameClicked.
textControl.FrameClicked += (_, e) =>
{
if (e.Frame != null)
{
e.Frame.DescriptiveText = "Quarterly sales by region";
}
};AddHandler textControl.FrameClicked,
Sub(sender, e)
If e.Frame IsNot Nothing Then
e.Frame.DescriptiveText = "Quarterly sales by region"
End If
End SubMembers
Properties
| Property | Description |
|---|---|
| Frame | Gets an object that represents the frame which causes the event. It is of the type Image, TextFrame, DataVisualization.ChartFrame, DataVisualization.BarcodeFrame or DataVisualization.DrawingFrame. |