TX Text Control .NET Server

DrawShapeEventArgs Class

Class|Introduced in 21.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Server.Core.dll
Install
dotnet add package TXTextControl.TextControl.Core.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.Server.dll from the setup.
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll
Inherits
  1. EventArgs
  2. DrawShapeEventArgs

Description

The DrawShapeEventArgs class contains information to draw additional parts necessary when the user interacts with the document. These additional parts are the frame shown during an image or textframe is moved or sized and the line shown during the width of a table cell is changed. This class is used with the ServerVisualization.TextViewGenerator.DrawShape event.

Syntax

public class DrawShapeEventArgs : EventArgs

Examples

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

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

Members

Properties

PropertyDescription
KindGets the kind of the shape. It can be one of the ServerVisualization.DrawShapeEventArgs.Shape values.
LocationGets the location of the shape, in pixels.
SizeGets the size of the shape, in pixels.

Enumerations

EnumerationDescription
ShapeDetermines a shape to be drawn during the DrawShape event. It contains the following values: