TX Text Control .NET Server

Shape Enumeration

Enumeration|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

Description

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

Syntax

public enum DrawShapeEventArgs.Shape

Members

MemberValueDescription
DropCaret3Determines the rectangle indicating the text input position where text is inserted during a drag and drop operation.
MoveAndSizeFrame1Determines the frame which is drawn when an image or textframe is moved or sized.
TableBorderMovingLine2Determines 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}");