TX Text Control .NET for WPF

FrameEventArgs Class

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

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

Examples

The following example uses FrameEventArgs.Frame while handling FrameClicked.

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

Members

Properties

PropertyDescription
FrameGets an object that represents the frame which causes the event. It is of the type Image, TextFrame, DataVisualization.ChartFrame, DataVisualization.BarcodeFrame or DataVisualization.DrawingFrame.