TX Text Control .NET for WPF

Size Property

Property|Introduced in 23.0
Namespace
TXTextControl.Drawing
Package
TXTextControl.TextControl.WPF.SDK as TXDrawing.dll from the private NuGet feed or Text Control Offline Packages

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; }

Examples

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}");