Type Property
- Namespace
TXTextControl.Drawing
- Package
TXTextControl.asTextControl. WinForms. SDK TXDrawing.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the shape's type. The default value is Drawing.ShapeType.Custom.
Syntax
public ShapeType Type { get; set; }Public Property Type As ShapeTypeExamples
The following example uses Shape.Type to configure type as part of the shape workflow. The configured value is checked before the workflow continues.
shape.Type = TXTextControl.Drawing.ShapeType.Line;
Console.WriteLine($"Type used by Shape: {shape.Type}");shape.Type = TXTextControl.Drawing.ShapeType.Line
Console.WriteLine($"Type used by Shape: {shape.Type}")