Size Property
- Namespace
TXTextControl.Drawing
- Package
TXTextControl.asTextControl. Core. SDK TXDrawing.from the private NuGet feed or Text Control Offline Packagesdll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDrawing.dll
Description
Gets or sets the shape's current size. The values are given in twips. The default values for Size.Width and Size.Height correspond to one half the smallest control side.
Syntax
public Size Size { get; set; }Public Property Size As SizeExamples
The following example uses Shape.Size to configure size as part of the shape workflow. The configured value is checked before the workflow continues.
shape.Size = new System.Drawing.Size(600, 400);
Console.WriteLine($"Size used by Shape: {shape.Size}");shape.Size = New System.Drawing.Size(600, 400)
Console.WriteLine($"Size used by Shape: {shape.Size}")