Shape Enumeration
- 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
Description
Determines a shape to be drawn during the DrawShape event. It contains the following values:
Syntax
public enum DrawShapeEventArgs.ShapePublic Enum DrawShapeEventArgs.ShapeMembers
| Member | Value | Description |
|---|---|---|
| DropCaret | 3 | Determines the rectangle indicating the text input position where text is inserted during a drag and drop operation. |
| MoveAndSizeFrame | 1 | Determines the frame which is drawn when an image or textframe is moved or sized. |
| TableBorderMovingLine | 2 | Determines the line which is drawn when the width of a table cell is changed. This shape's horizontal size is set to 1 pixel. |
Examples
The following example selects the Move And Size Frame value from the Shape enumeration and uses it as a documented workflow choice.
TXTextControl.ServerVisualisation.DrawShapeEventArgs.Shape value = TXTextControl.ServerVisualisation.DrawShapeEventArgs.Shape.MoveAndSizeFrame;
Console.WriteLine($"Using Shape: {value}");Dim value As TXTextControl.ServerVisualisation.DrawShapeEventArgs.Shape = TXTextControl.ServerVisualisation.DrawShapeEventArgs.Shape.MoveAndSizeFrame
Console.WriteLine($"Using Shape: {value}")