TX Text Control .NET Server

Shape Constructor

Constructor|Introduced in 23.0
Namespace
TXTextControl.Drawing
Package
TXTextControl.TextControl.Core.SDK as TXDrawing.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXDrawing.dll

Description

Initializes a new instance of the Shape class.

Syntax

Shape()

Creates a new instance of the Shape class by the ShapeType type ShapeType.Custom.

public Shape();

Shape(ShapeType)

Initializes a new instance of the Shape class by a specific ShapeType type.

public Shape(ShapeType type);
ParameterDescription
type

Specifies the shape's type.

Shape(Shape)

public Shape(Shape shape);

Examples

The following example creates a Shape instance and configures its angle setting for a document workflow.

TXTextControl.Drawing.Shape shape = new();
shape.Angle = 10;