AutoSize Property
- Namespace
TXTextControl.Drawing
- Package
TXTextControl.asTextControl. WinForms. SDK TXDrawing.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets a value indicating whether the shape is automatically resized with the TX Drawing Control. The default value is false.
Syntax
public bool AutoSize { get; set; }Public Property AutoSize As BooleanExamples
The following example uses Shape.AutoSize to configure auto size as part of the shape workflow. The configured value is checked before the workflow continues.
shape.AutoSize = true;
if (shape.AutoSize)
{
Console.WriteLine("Shape: Auto Size is enabled.");
}shape.AutoSize = True
If shape.AutoSize Then
Console.WriteLine("Shape: Auto Size is enabled.")
End If