AddStyle Enumeration
- Namespace
TXTextControl.Drawing
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXDrawing.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXDrawing.from the setup.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.AddStylePublic Enum ShapeCollection.AddStyleMembers
| Member | Value | Description |
|---|---|---|
| Fill | 0 | The shape fills the complete control, no matter which location and size was defined before. |
| MouseCreation | 2 | The 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. |
| None | 1 | No 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}");Dim value As TXTextControl.Drawing.ShapeCollection.AddStyle = TXTextControl.Drawing.ShapeCollection.AddStyle.Fill
Console.WriteLine($"Using Add Style: {value}")