TX Text Control .NET for WPF

ShapeEventArgs Class

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

Description

The ShapeEventArgs class provides data for all events that occur with shapes. These are the TXDrawingControl.ShapeAdjusted, TXDrawingControl.ShapeClicked, TXDrawingControl.ShapeCreated, TXDrawingControl.ShapeDeleted, TXDrawingControl.ShapeDeselected, TXDrawingControl.ShapeFlipped, TXDrawingControl.ShapeFormatChanged, TXDrawingControl.ShapeMoved, TXDrawingControl.ShapeSelected and TXDrawingControl.ShapeSized events.

Syntax

public class ShapeEventArgs : EventArgs

Examples

The following example includes the shape value from a Shape Event Args object in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Shape: {shapeEventArgs.Shape}");
Console.WriteLine("Shape Event Args is ready for use.");

Members

Properties

PropertyDescription
ShapeGets an object of type Shape that represents the shape which causes the event.