DrawShapeEventArgs Class
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. Core. SDK
- Assembly
TXTextControl.Server. Core. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. Core. SDK TXTextControl.from the setup.Server. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
- Inherits
- Event
Args - Draw
Shape Event Args
- Event
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 : EventArgsPublic Class DrawShapeEventArgs
Inherits EventArgsExamples
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.");Console.WriteLine($"Location: {drawShapeEventArgs.Location}")
Console.WriteLine("Draw Shape Event Args is ready for use.")Members
Properties
| Property | Description |
|---|---|
| Kind | Gets the kind of the shape. It can be one of the ServerVisualization.DrawShapeEventArgs.Shape values. |
| Location | Gets the location of the shape, in pixels. |
| Size | Gets the size of the shape, in pixels. |
Enumerations
| Enumeration | Description |
|---|---|
| Shape | Determines a shape to be drawn during the DrawShape event. It contains the following values: |