TX Text Control .NET Server

AddStyle Enumeration

Enumeration
Namespace
TXTextControl.Drawing
Package
TXTextControl.TextControl.Core.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXDrawing.dll
Install
dotnet add package TXTextControl.TextControl.Core.SDK .NET 8 and later. For .NET Framework, reference TXDrawing.dll from the setup.
Also in
TXTextControl.TextControl.ASP.SDK as TXDrawing.dll

Description

Determines the location and size in which a shape is added to the TX Drawing Control. The enumeration contains the following values:

Syntax

public enum ShapeCollection.AddStyle

Members

MemberValueDescription
Fill0The shape fills the complete control, no matter which location and size was defined before.
MouseCreation2The shape is added on the next mouse up handling and gets the bounds which are defined by the previous mouse down click and the following mouse movement. If a considering side value is less than 150 twips, the side gets a length of 1134 twips.
None1No specific style is set. The shape is located at its defined location with its defined size.

Examples

The following example selects the Fill value from the Add Style enumeration and uses it as a documented workflow choice.

TXTextControl.Drawing.ShapeCollection.AddStyle value = TXTextControl.Drawing.ShapeCollection.AddStyle.Fill;
Console.WriteLine($"Using Add Style: {value}");